public JsonResult MakeChart(int ReportID, string UserName) { if (!string.IsNullOrEmpty(UserName)) { Username = CrossCutting.CrossCutting_EncryptDecrypt.Decrypt(UserName); } GraphDetails objGraphDetails = new GraphDetails(); DashBoardBL dashBoard = new DashBoardBL(); objGraphDetails.ReportID = ReportID; objGraphDetails.UserName = Username; objGraphDetails = dashBoard.GenerateDashboardData(objGraphDetails); return(Json(objGraphDetails, JsonRequestBehavior.AllowGet)); }
public IHttpActionResult GetDatosIniciales(string usuario, int idCliente) { try { DashBoardBL oDashBoardBL = new DashBoardBL(idCliente); DashBoard_DatosInicialesBE lobe = oDashBoardBL.ListarDatosIniciales(usuario, idCliente); if (lobe != null) { return(Ok(Models.Util.GetBodyResponse(200, lobe))); } else { return(Ok(Models.Util.GetBodyResponse(300, "No se encontraron registros."))); } } catch (Exception ex) { /*LogSA.GrabarLogError("SOL TR", user, "GetListarOrdOtrs", ex);*/ return(Ok(Models.Util.GetBodyResponse(400, ex.Message))); } }
public GraphDetails GenerateDashboardData(GraphDetails objGraphDetails) { DashBoardBL objBusiness = new DashBoardBL(); return(objBusiness.GenerateDashboardData(objGraphDetails)); }