internal static University FromJson(VkResponse response) { var university = new University(); university.Id = response["id"]; university.Country = response["country"]; university.City = response["city"]; university.Name = response["name"] ?? response["title"]; university.Faculty = response["faculty"]; university.FacultyName = response["faculty_name"]; university.Chair = response["chair"]; university.ChairName = response["chair_name"]; university.Graduation = response["graduation"]; // установлено экcпериментальным путем university.EducationForm = response["education_form"]; university.EducationStatus = response["education_status"]; return(university); }
internal static University FromJson(VkResponse response) { var university = new University(); university.Id = response["id"]; university.Country = response["country"]; university.City = response["city"]; university.Name = response["name"] ?? response["title"]; university.Faculty = response["faculty"]; university.FacultyName = response["faculty_name"]; university.Chair = response["chair"]; university.ChairName = response["chair_name"]; university.Graduation = response["graduation"]; // установлено экcпериментальным путем university.EducationForm = response["education_form"]; university.EducationStatus = response["education_status"]; return university; }
public FacultyViewModel(University university, Faculty faculty) { University = university; Faculty = faculty; }
public UniversityViewModel(University university) { University = university; }
private IEnumerable<Faculty> GetFaculties(University university) { return Helper.GetFaculties(Convert.ToInt32(university.Id)); }