public JsonResult UpdateShipper(Shipper model) { try { Shipper shipper = _shipperService.GetByID(model.ShipperID); shipper.CompanyName = model.CompanyName; shipper.Phone = model.Phone; _shipperService.Update(shipper); } catch (Exception ex) { throw new Exception(ex.Message); } return(Json("ok", JsonRequestBehavior.AllowGet)); }