presence/domain/Models/Group.cs

13 lines
344 B
C#
Raw Normal View History

2024-11-01 14:11:27 +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]};
}
}
}