Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 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));
        }