示例#1
0
        public JsonResult Delete(int id)
        {
            var msg = string.Empty;

            try
            {
                _service.RemoveConnection(id);
            }
            catch (SimpleException ex)
            {
                msg = ex.Message;
            }
            return(Json(new { status = "Removed", errorMsg = msg }));
        }