Example #1
0
 internal static void MapToTeacher(EditTeacher source, Teacher destination)
 {
     destination.Id = source.Id;
     destination.City = source.City;
     destination.Country = source.Country;
     destination.DOB = source.Dob;
     destination.FatherName = source.FatherName;
     destination.FirstName = source.FirstName;
     destination.Gender = ConvertGendertobool(source.Gender);
     destination.FirstName = source.FirstName;
     destination.JoiningDate = source.Doj;
     destination.LastName = source.LastName;
     destination.MobileNo = source.MobileNumber;
     destination.MotherName = source.MotherName;
     destination.Nationality = source.Nationality;
     destination.PhoneNo = source.PhoneNumber;
     destination.PinCode = source.ZipCode;
     destination.Qualification = source.Qualification;
     destination.State = source.State;
     destination.StreetAddress = source.StreetAddress;
 }
Example #2
0
 internal static EditTeacher MapToEditTeacherModel(Teacher teacher)
 {
     var editteacher = new EditTeacher();
     editteacher.Url = FileHelper.GetFileUrl(teacher.ImagePath);
     editteacher.City = teacher.City;
     editteacher.Country = teacher.Country;
     editteacher.Dob = teacher.DOB;
     editteacher.Doj = teacher.JoiningDate;
     editteacher.FatherName = teacher.FatherName;
     editteacher.FirstName = teacher.FirstName;
     editteacher.Gender = ToGender(teacher.Gender);
     editteacher.Id = teacher.Id;
     editteacher.LastName = teacher.LastName;
     editteacher.MobileNumber = teacher.MobileNo;
     editteacher.MotherName = teacher.MotherName;
     editteacher.Nationality = teacher.Nationality;
     editteacher.PhoneNumber = teacher.PhoneNo;
     editteacher.Qualification = teacher.Qualification;
     editteacher.State = teacher.State;
     editteacher.StreetAddress = teacher.StreetAddress;
     editteacher.ZipCode = teacher.PinCode;
     editteacher.Email = teacher.EmailId;
     return editteacher;
 }
Example #3
0
 internal static Teacher MapToTeacher(EditTeacher model)
 {
     var master = new Teacher();
     master.Id = model.Id;
     master.City = model.City;
     master.Country = model.Country;
     master.DOB = model.Dob;
     master.FatherName = model.FatherName;
     master.FirstName = model.FirstName;
     master.Gender = ConvertGendertobool(model.Gender);
     master.FirstName = model.FirstName;
     master.JoiningDate = model.Doj;
     master.LastName = model.LastName;
     master.MobileNo = model.MobileNumber;
     master.MotherName = model.MotherName;
     master.Nationality = model.Nationality;
     master.PhoneNo = model.PhoneNumber;
     master.PinCode = model.ZipCode;
     master.Qualification = model.Qualification;
     master.State = model.State;
     master.StreetAddress = model.StreetAddress;
     return master;
 }
Example #4
0
 public EditTeacher EditTeacher(EditTeacher model)
 {
     return _teacherHelper.EditTeacher(model);
 }