public static Lecturer ToEntity(this LecturerContract contract) { return(new Lecturer { LecturerId = contract.LecturerId, Name = contract.Name, Surname = contract.Surname, Address = contract.Address, PhoneNumber = contract.PhoneNumber, Age = contract.Age, WorkExperience = contract.WorkExperience, Title = contract.Title, Seminars = contract.Seminars.ConvertAll(ToEntity) }); }
public void AddLecturer(LecturerContract lecturer) { _lecturerService.AddLecturer(lecturer.ToEntity()); }
public void UpdateLecturer(string id, LecturerContract lecturer) { _lecturerService.EditLecturer(int.Parse(id), lecturer.ToEntity()); }
public void Update(int id, LecturerContract lecturer) { _lecturerService.EditLecturer(id, lecturer.ToEntity()); }