private Country ConvertToDM(CountryBM model) { return new Country { CountryId = model.CountryId, Name=model.Name, CreatedBy=model.CreatedBy, CreationDate=model.CreationDate, ModifiedBy = model.ModifiedBy, ModificationDate = model.ModificationDate }; }
public void Update(CountryBM model) { uow.CountryRepository.Update(ConvertToDM(model)); uow.Save(); }
public void Create(CountryBM model) { uow.CountryRepository.Add(ConvertToDM(model)); uow.Save(); }