public override Company Edit(long id, Company model) { var entity = companyRepo.Get(id); if (entity != null) { entity.Name = model.Name; return(companyRepo.Edit(entity)); } return(model); }
public Company Get(int id) { var company = _companyRepo.Get(id); return(company); }