public void Update(ICityModel businessModel) { using (Repository = new CityRepository()) { Message = UpdateSuccessMessage; Repository.Update(businessModel); } }
public void Save(ICityModel businessModel) { using (Repository = new CityRepository()) { Message = SaveSuccessMessage; Repository.Save(businessModel); } }
private static void PopulateModelToNewEntity(City query, ICityModel model) { query.Id = model.Id; query.RowVersion = model.RowVersion; query.RowStatus = model.RowStatus; query.CityName = model.CityName; query.CreatedBy = model.CreatedBy; query.CreatedDate = model.CreatedDate; query.ModifiedBy = model.ModifiedBy; query.ModifiedDate = model.ModifiedDate; }
private static City PopulateModelToNewEntity(ICityModel model) { return(new City { Id = model.Id, RowVersion = model.RowVersion, RowStatus = model.RowStatus, CityName = model.CityName, CreatedBy = model.CreatedBy, CreatedDate = model.CreatedDate, ModifiedBy = model.ModifiedBy, ModifiedDate = model.ModifiedDate, }); }