示例#1
0
        public JsonResult getCloth(int clothId)
        {
            Response         response         = new Response();
            ClothDataHandler clothDataHandler = new ClothDataHandler(config);

            try {
                Cloth cloth = clothDataHandler.getCloth(clothId);
                response.data   = JsonConvert.SerializeObject(cloth);
                response.status = true;
            } catch (Exception ex) {
                response.status  = false;
                response.message = ex.Message;
            }
            return(Json(response));
        }