public ActionResult getCommissionDashboardRecord(int?skip, int?take) { try { if (skip == 0) { CommissionDetail objCommissionDetail = new CommissionDetail(); var getFileAllData = _icommission.GetCommissionDashboardRecord(GlobalConst.Records.Skip, GlobalConst.Records.LandingTake25); objCommissionDetail.CommissionDetails = Mapper.Map <IEnumerable <CommissionSearch> >(getFileAllData.CommissionDetails); objCommissionDetail.TotalCount = getFileAllData.TotalCount; return(Json(objCommissionDetail, GlobalConst.ContentTypes.TextHtml)); } else { CommissionDetail objCommissionDetail = new CommissionDetail(); var getFileAllData = _icommission.GetCommissionDashboardRecord(skip.Value, GlobalConst.Records.LandingTake25); objCommissionDetail.CommissionDetails = Mapper.Map <IEnumerable <CommissionSearch> >(getFileAllData.CommissionDetails); objCommissionDetail.TotalCount = getFileAllData.TotalCount; return(Json(objCommissionDetail, GlobalConst.ContentTypes.TextHtml)); } } catch (Exception ex) { return(Json("")); } }
public void Get_CommissionDashboardRecord() { var getCommissionDetails = _commissionImplBL.GetCommissionDashboardRecord(0, 10); Assert.IsTrue(getCommissionDetails != null, "Unable to find"); }