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);
        }
Esempio n. 2
0
        public Company Get(int id)
        {
            var company = _companyRepo.Get(id);

            return(company);
        }