public bool UpdateFundingRepo(Models.SBP_BlotterFundingRepo fundingRepo)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntitiyMapperBlotterFR <Models.SBP_BlotterFundingRepo, DataAccessLayer.SBP_BlotterFundingRepo> mapObj = new EntitiyMapperBlotterFR <Models.SBP_BlotterFundingRepo, DataAccessLayer.SBP_BlotterFundingRepo>();
                DataAccessLayer.SBP_BlotterFundingRepo FundingRepo = new DataAccessLayer.SBP_BlotterFundingRepo();
                FundingRepo = mapObj.Translate(fundingRepo);
                status      = DAL.UpdateFundingRepo(FundingRepo);
            }
            return(status);
        }
        public bool InsertFundingRepo(List <Models.SBP_BlotterFundingRepo> blotterFR)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntitiyMapperBlotterFR <Models.SBP_BlotterFundingRepo, DataAccessLayer.SBP_BlotterFundingRepo> mapObj = new EntitiyMapperBlotterFR <Models.SBP_BlotterFundingRepo, DataAccessLayer.SBP_BlotterFundingRepo>();
                DataAccessLayer.SBP_BlotterFundingRepo FRObj = new DataAccessLayer.SBP_BlotterFundingRepo();
                for (int i = 0; i < blotterFR.Count; i++)
                {
                    //blotterFR[i].DataType=()
                    FRObj  = mapObj.Translate(blotterFR[i]);
                    status = DAL.InsertFundingRepo(FRObj);
                }
            }
            return(status);
        }
        public bool AddFundingRepo(Models.SBP_BlotterFundingRepo blotterFR)
        {
            bool status = false;
            EntitiyMapperBlotterFR <Models.SBP_BlotterFundingRepo, DataAccessLayer.SBP_BlotterFundingRepo> mapObj = new EntitiyMapperBlotterFR <Models.SBP_BlotterFundingRepo, DataAccessLayer.SBP_BlotterFundingRepo>();

            DataAccessLayer.SBP_BlotterFundingRepo FRObj = new DataAccessLayer.SBP_BlotterFundingRepo();
            FRObj  = mapObj.Translate(blotterFR);
            status = DAL.InsertFundingRepo(FRObj);
            return(status);
        }
        public JsonResult <List <Models.SP_GetSBPBlotterFRAuto_Result> > GetAllblotterFundingRepoAuto(int UserID, int BranchID, int CurID, int BR, string DateVal)
        {
            EntitiyMapperBlotterFR <DataAccessLayer.SP_GetSBPBlotterFRAuto_Result, Models.SP_GetSBPBlotterFRAuto_Result> mapObj = new EntitiyMapperBlotterFR <DataAccessLayer.SP_GetSBPBlotterFRAuto_Result, Models.SP_GetSBPBlotterFRAuto_Result>();

            List <DataAccessLayer.SP_GetSBPBlotterFRAuto_Result> blotterFRList = DAL.GetAllblotterFundingRepoAuto(UserID, BranchID, CurID, BR, DateVal);
            List <Models.SP_GetSBPBlotterFRAuto_Result>          blotterFR     = new List <Models.SP_GetSBPBlotterFRAuto_Result>();

            foreach (var item in blotterFRList)
            {
                blotterFR.Add(mapObj.Translate(item));
            }
            return(Json <List <Models.SP_GetSBPBlotterFRAuto_Result> >(blotterFR));
        }