public async Task <IHttpActionResult> GetCommodity(string id) { Commodity commodity = _SVC.GetCommodity(id); if (commodity == null) { return(NotFound()); } return(Ok(commodity)); }
public ActionResult Edit(string xID) { return(PartialView(_Service.GetCommodity(xID))); }