public JsonResult DeclineRequest(RequestModel notification) { try { var auth = AuthorizationGateway.GetAuthorizedInfo(); RequestModel request = new RequestModel(); request.DeclineRequest(notification, auth); return(Json(new { Result = "OK" }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { Result = "ERROR", Message = ex.Message }, JsonRequestBehavior.AllowGet)); } }