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; } public static Group Parse(string input){ string[] words = input.Split(" "); return new Group{Id = Convert.ToInt32(words[0]), Name = words[1]}; } } }