public JsonResult <Models.SBP_BlotterClearing> GetBlotterClearing(int id)
        {
            EntityMapperBlotterClearing <DataAccessLayer.SBP_BlotterClearing, Models.SBP_BlotterClearing>
            mapObj = new EntityMapperBlotterClearing <DataAccessLayer.SBP_BlotterClearing, Models.SBP_BlotterClearing>();

            DataAccessLayer.SBP_BlotterClearing dalBlotterClearing = DAL.GetClearingItem(id);
            Models.SBP_BlotterClearing          products           = new Models.SBP_BlotterClearing();
            products = mapObj.Translate(dalBlotterClearing);
            return(Json <Models.SBP_BlotterClearing>(products));
        }
        public bool UpdateClearing(Models.SBP_BlotterClearing blotterClearing)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBlotterClearing <Models.SBP_BlotterClearing, DataAccessLayer.SBP_BlotterClearing> mapObj = new EntityMapperBlotterClearing <Models.SBP_BlotterClearing, DataAccessLayer.SBP_BlotterClearing>();
                DataAccessLayer.SBP_BlotterClearing ClearingObj = new DataAccessLayer.SBP_BlotterClearing();
                ClearingObj = mapObj.Translate(blotterClearing);
                status      = DAL.UpdateClearing(ClearingObj);
            }
            return(status);
        }