13 lines
344 B
C#
13 lines
344 B
C#
namespace Demo.Domain.Models
|
|
{
|
|
public class Group
|
|
{
|
|
public required int ID{get; set; }
|
|
public required string Name{get; set; }
|
|
|
|
public static Group Parse(string input){
|
|
string[] words = input.Split(" ");
|
|
return new Group{ID = Convert.ToInt32(words[0]), Name = words[1]};
|
|
}
|
|
}
|
|
} |