public ActionResult isProductEnough() { ReturnMessage rm = new ReturnMessage(); try { int memberId = int.Parse(User.Claims.FirstOrDefault(p => p.Type == "jti").Value); rm = COrderManager.isProductEnough(memberId); } catch (Exception e) { rm.code = MessageCode.ERROR; rm.data = e.Message; } return(Ok(rm)); }