示例#1
0
 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)
     });
 }
示例#2
0
 public void AddLecturer(LecturerContract lecturer)
 {
     _lecturerService.AddLecturer(lecturer.ToEntity());
 }
示例#3
0
 public void UpdateLecturer(string id, LecturerContract lecturer)
 {
     _lecturerService.EditLecturer(int.Parse(id), lecturer.ToEntity());
 }
示例#4
0
 public void Update(int id, LecturerContract lecturer)
 {
     _lecturerService.EditLecturer(id, lecturer.ToEntity());
 }