private State ConvertToDM(StateBM model) { return(new State { StateId = model.StateId, CountryId = model.StateId, Name = model.Name }); }
public void Update(StateBM model) { uow.StateRepository.Update(ConvertToDM(model)); uow.Save(); }
public void Create(StateBM model) { uow.StateRepository.Add(ConvertToDM(model)); uow.Save(); }