public CompanyEntity Update(CompanyEntity dbCompany, CompanyEntity company)
        {
            dbCompany.Name  = company.Name;
            dbCompany.Phone = company.Phone;

            _context.SaveChanges();

            return(dbCompany);
        }
 public void Remove(CompanyEntity company)
 {
     _context.Remove(company);
     _context.SaveChanges();
 }
 public CompanyEntity Add(CompanyEntity company)
 {
     _context.Add(company);
     _context.SaveChanges();
     return(company);
 }