public async Task<IHttpActionResult> PostCompany(ZapaziMi.DAL.Entities.ZapaziMiDb.Company company) { return await GetMyInsertResultWithModelValidation(() => _companiesService.InsertCompany(company)); }
public async Task<IHttpActionResult> PutCompany(int id, ZapaziMi.DAL.Entities.ZapaziMiDb.Company company) { return await GetMyResultWithModelValidation(() => _companiesService.UpdateCompany(id, company)); }