Пример #1
0
        public Response Delete([FromBody] string[] ids)
        {
            Response resp = new Response();

            try {
                _app.Delete(ids);
            } catch (Exception e) {
                resp.Code    = 500;
                resp.Message = e.Message;
            }
            return(resp);
        }
        public string Delete(string[] ids)
        {
            Response resp = new Response();

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