Demo/Domain/Models/Group.cs

13 lines
344 B
C#
Raw Normal View History

2024-10-28 03:24:11 +00:00
namespace Demo.Domain.Models
{
public class Group
{
2024-10-28 03:24:11 +00:00
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(" ");
2024-10-28 03:24:11 +00:00
return new Group{ID = Convert.ToInt32(words[0]), Name = words[1]};
2024-10-17 12:35:14 +00:00
}
}
}