public ActionResult DeleteOperator(Guid OperatorId) { bool flag = false; try { var oper = _IOperatorService.GetOperatorById(OperatorId); _IOperatorService.DeleteOperator(oper); flag = true; }catch (Exception ex) { flag = false; } return(Json(flag, JsonRequestBehavior.AllowGet)); }