public JsonResult <Models.SBP_BlotterOpeningBalance> GetBlotterOpenBalById(int id)
        {
            EntityMapperBlotterOpenBal <DataAccessLayer.SBP_BlotterOpeningBalance, Models.SBP_BlotterOpeningBalance>
            mapObj = new EntityMapperBlotterOpenBal <DataAccessLayer.SBP_BlotterOpeningBalance, Models.SBP_BlotterOpeningBalance>();

            DataAccessLayer.SBP_BlotterOpeningBalance dalBlotterOpenBal = DAL.GetOpenBalItem(id);
            Models.SBP_BlotterOpeningBalance          products          = new Models.SBP_BlotterOpeningBalance();
            products = mapObj.Translate(dalBlotterOpenBal);
            return(Json <Models.SBP_BlotterOpeningBalance>(products));
        }
        public bool UpdateOpenBal(Models.SBP_BlotterOpeningBalance blotterOpenBal)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBlotterOpenBal <Models.SBP_BlotterOpeningBalance, DataAccessLayer.SBP_BlotterOpeningBalance> mapObj = new EntityMapperBlotterOpenBal <Models.SBP_BlotterOpeningBalance, DataAccessLayer.SBP_BlotterOpeningBalance>();
                DataAccessLayer.SBP_BlotterOpeningBalance OpenBalObj = new DataAccessLayer.SBP_BlotterOpeningBalance();
                OpenBalObj = mapObj.Translate(blotterOpenBal);
                status     = DAL.UpdateOpenBal(OpenBalObj);
            }
            return(status);
        }