public void DeleteCompany(Model.Company.Company Company) { ResporitoryCompany resporitoryCompany = new ResporitoryCompany(new DAL.MyContext()); resporitoryCompany.Delete(Company); }
public IHttpActionResult GetCompanies() { ResporitoryCompany resporitoryCompany = new ResporitoryCompany(new DAL.MyContext()); return(Ok(resporitoryCompany.GetAll())); }
public void AddCompany(Model.Company.Company Company) { ResporitoryCompany resporitoryCompany = new ResporitoryCompany(new DAL.MyContext()); resporitoryCompany.Add(Company); }