2024-10-16 20:15:49 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace Demo.domain.Models
|
|
|
|
{
|
|
|
|
public class Group
|
|
|
|
{
|
|
|
|
public required int Id { get; set; }
|
|
|
|
public required string Name { get; set; }
|
2024-10-17 12:35:14 +00:00
|
|
|
|
|
|
|
public static Group Parse(string input){
|
|
|
|
string[] words = input.Split(" ");
|
|
|
|
return new Group{Id = Convert.ToInt32(words[0]), Name = words[1]};
|
|
|
|
}
|
2024-10-16 20:15:49 +00:00
|
|
|
}
|
|
|
|
}
|