Beispiel #1
0
 public UserPlanModel InsertUserPlan(UserPlanModel planModel)
 {
     //unitOfWork.StartTransaction();
     UserPlanRepository repo = new UserPlanRepository(unitOfWork);
     //UserLocationModel userLocationModel = new UserLocationModel();
     UserPlan userPlan = new UserPlan();
     AutoMapper.Mapper.Map(planModel, userPlan);
     userPlan = repo.Insert(userPlan);
     //unitOfWork.Commit();
     AutoMapper.Mapper.Map(userPlan, planModel);
     return planModel;
 }
Beispiel #2
0
 public int Insert(UserPlanEntity entity)
 {
     return(_repository.Insert(entity));
 }