Ejemplo n.º 1
0
        public JsonResult AssignUnassignReport(AssignReportsViewModel model)
        {
            using (ProjectDB projectDB = new ProjectDB())
            {
                OperationDetails operationDetails = projectDB.AssignUnassignReport(model.Pfid, model.ReportId, CurrentUser.Pfid);
                if (operationDetails.OperationStatus == 1)
                {
                    return(Json(new { success = true, message = operationDetails.OperationMessage }, JsonRequestBehavior.AllowGet));
                }

                return(Json(new { success = false, message = "Something went wrong!!" }, JsonRequestBehavior.AllowGet));
            }
        }