Beispiel #1
0
        public JsonResult <Models.SBP_BlotterCRRFINCON> GetBlotterCRRFINCON(int id)
        {
            EntitiyMapperBlotterCRRFINCON <DataAccessLayer.SBP_BlotterCRRFINCON, Models.SBP_BlotterCRRFINCON> mapObj = new EntitiyMapperBlotterCRRFINCON <DataAccessLayer.SBP_BlotterCRRFINCON, Models.SBP_BlotterCRRFINCON>();

            DataAccessLayer.SBP_BlotterCRRFINCON dalBlotterCRRFINCON = DAL.GetCRRFINCONItem(id);
            Models.SBP_BlotterCRRFINCON          products            = new Models.SBP_BlotterCRRFINCON();
            products = mapObj.Translate(dalBlotterCRRFINCON);
            return(Json <Models.SBP_BlotterCRRFINCON>(products));
        }
Beispiel #2
0
        public bool UpdateCRRFINCON(Models.SBP_BlotterCRRFINCON blotterCRRFINCON)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                blotterCRRFINCON.DemandTimeLiablitiesTotal       = (blotterCRRFINCON.DemandTimeLiablities - blotterCRRFINCON.TimeLiablitiesOverOneYear);
                blotterCRRFINCON.DemandTimeLiablitiesTotalForCRR = (blotterCRRFINCON.DemandTimeLiablitiesTotal + blotterCRRFINCON.PreMatureDeposit);
                EntitiyMapperBlotterCRRFINCON <Models.SBP_BlotterCRRFINCON, DataAccessLayer.SBP_BlotterCRRFINCON> mapObj = new EntitiyMapperBlotterCRRFINCON <Models.SBP_BlotterCRRFINCON, DataAccessLayer.SBP_BlotterCRRFINCON>();
                DataAccessLayer.SBP_BlotterCRRFINCON CRRFINCONObj = new DataAccessLayer.SBP_BlotterCRRFINCON();
                CRRFINCONObj = mapObj.Translate(blotterCRRFINCON);
                status       = DAL.UpdateCRRFINCON(CRRFINCONObj);
            }
            return(status);
        }