Demo/Domain/Models/Group.cs

13 lines
344 B
C#
Raw Permalink Normal View History

2024-10-17 11:46:19 +00:00
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]};
}
}
}