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); }
public static void Map(UserModel source, User destination) { Mapper.Map(source, destination); }
private void InsertUser(SmartCRMEntitiesModel db, UserModel userModel) { User pocoUser = new User(); Mapper.Map(userModel, pocoUser); db.Add(pocoUser); }