Ejemplo n.º 1
0
        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

            };
        }
Ejemplo n.º 2
0
 public void Update(CountryBM model)
 {
     uow.CountryRepository.Update(ConvertToDM(model));
     uow.Save();
 }
Ejemplo n.º 3
0
 public void Create(CountryBM model)
 {
     uow.CountryRepository.Add(ConvertToDM(model));
     uow.Save();
 }