예제 #1
0
 private State ConvertToDM(StateBM model)
 {
     return(new State
     {
         StateId = model.StateId,
         CountryId = model.StateId,
         Name = model.Name
     });
 }
예제 #2
0
 public void Update(StateBM model)
 {
     uow.StateRepository.Update(ConvertToDM(model));
     uow.Save();
 }
예제 #3
0
 public void Create(StateBM model)
 {
     uow.StateRepository.Add(ConvertToDM(model));
     uow.Save();
 }