Пример #1
0
        public Response Update(Resource obj)
        {
            Response resp = new Response();

            try {
                _app.Update(obj);
            } catch (Exception e) {
                resp.Code    = 500;
                resp.Message = e.Message;
            }
            return(resp);
        }
 public Response Update(AddOrUpdateResReq obj)
 {
     Response resp = new Response();
     try
     {
         _app.Update(obj);
     }
     catch (Exception e)
     {
         resp.Code = 500;
         resp.Message = e.Message;
     }
     return resp;
 }
        public string Update(Resource obj)
        {
            Response resp = new Response();

            try
            {
                _app.Update(obj);
            }
            catch (Exception e)
            {
                resp.Code    = 500;
                resp.Message = e.Message;
            }
            return(JsonHelper.Instance.Serialize(resp));
        }