public async Task <IHttpActionResult> GetCommodity(string id)
        {
            Commodity commodity = _SVC.GetCommodity(id);

            if (commodity == null)
            {
                return(NotFound());
            }

            return(Ok(commodity));
        }
示例#2
0
 public ActionResult Edit(string xID)
 {
     return(PartialView(_Service.GetCommodity(xID)));
 }