Exemplo n.º 1
0
        public Response Delete([FromBody] string[] ids)
        {
            var result = new Response();

            try {
                _app.Delete(ids);
            } catch (Exception ex) {
                result.Code    = 500;
                result.Message = ex.InnerException?.Message ?? ex.Message;
            }

            return(result);
        }
Exemplo n.º 2
0
        public string Delete(string[] ids)
        {
            try
            {
                _app.Delete(ids);
            }
            catch (Exception e)
            {
                Result.Code    = 500;
                Result.Message = e.InnerException?.Message ?? e.Message;
            }

            return(JsonHelper.Instance.Serialize(Result));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> DeleteForm(string keyValue)
        {
            await roleApp.Delete(keyValue);

            return(Success("删除成功。"));
        }