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 })); }
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 })); }