Exemplo n.º 1
0
        public static employer_persons ToDB(this EmployerPerson item) //for create.
        {
            var employerPerson = AutoMapper.Mapper.Instance.Map <EmployerPerson, employer_persons>(item);

            employerPerson.identity_user_id = item.Identity_UserID;

            return(employerPerson);
        }
Exemplo n.º 2
0
 public static employer_persons DBUpdateFrom(this employer_persons item, EmployerPerson svcItem)  //for update
 {
     item.first_name   = svcItem.FirstName;
     item.last_name    = svcItem.LastName;
     item.phone_number = svcItem.PhoneNumber;
     item.id_number    = svcItem.IdNumber;
     item.job_function = svcItem.JobFunction;
     return(item);
 }