Beispiel #1
0
        public JsonResult DeleteRequest(int?RequestId)
        {
            int id = 0;

            try
            {
                if (RequestId.HasValue || RequestId.Value > 0)
                {
                    DepartmentService service = new DepartmentService();
                    id = service.DeleteRequest(RequestId);
                }
                return(Json(new { Status = true, Message = "Delete Success" }, JsonRequestBehavior.AllowGet));
            }
            catch (Exception ex)
            {
                return(Json(new { Status = false, Message = "Error Occured" }, JsonRequestBehavior.AllowGet));
            }
        }