public async Task <IActionResult> UpdateFoodItem([FromBody] IEnumerable <SendFoodItem> model, Guid CompanyId) { var url = $"{IDPSettings.Current.LunchAppUrl}CreateFoodItems/{CompanyId}"; var results = await _services.PutAsync <IEnumerable <Guid> >(url, model); return(new JsonResult(results)); }
public async Task <IActionResult> UpdateFoodVendor([FromBody] EditVendors model, Guid CompanyId) { var url = $"{IDPSettings.Current.LunchAppUrl}Vendor/UpdateVendors/{model.Id}/{CompanyId}"; var results = await _services.PutAsync <string>(url, model); return(new JsonResult(results)); }