Beispiel #1
0
 private void InsertAccount(SmartCRMEntitiesModel db, UserModel userModel, EmployeeModel employeeModel)
 {
     User pocoUser = new User();
     MapHelper.Map(userModel, pocoUser);
     Employee pocoEmployee = new Employee();
     MapHelper.Map(employeeModel, pocoEmployee);
     pocoUser.Employee = pocoEmployee;
     db.Add(pocoUser);
 }
Beispiel #2
0
 public static void Map(UserModel source, User destination)
 {
     Mapper.Map(source, destination);
 }
Beispiel #3
0
 private void InsertUser(SmartCRMEntitiesModel db, UserModel userModel)
 {
     User pocoUser = new User();
     Mapper.Map(userModel, pocoUser);
     db.Add(pocoUser);
 }