예제 #1
0
        public JsonResult <Models.SBP_BlotterRECON> GetblotterRECON(int id)
        {
            EntitiyMapperBlotterRECON <DataAccessLayer.SBP_BlotterRECON, Models.SBP_BlotterRECON> mapObj = new EntitiyMapperBlotterRECON <DataAccessLayer.SBP_BlotterRECON, Models.SBP_BlotterRECON>();

            DataAccessLayer.SBP_BlotterRECON dalblotterRECON = DAL.GetRECONItem(id);
            Models.SBP_BlotterRECON          products        = new Models.SBP_BlotterRECON();
            products = mapObj.Translate(dalblotterRECON);
            return(Json <Models.SBP_BlotterRECON>(products));
        }
예제 #2
0
        public bool UpdateRECON(Models.SBP_BlotterRECON blotterRECON)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntitiyMapperBlotterRECON <Models.SBP_BlotterRECON, DataAccessLayer.SBP_BlotterRECON> mapObj = new EntitiyMapperBlotterRECON <Models.SBP_BlotterRECON, DataAccessLayer.SBP_BlotterRECON>();
                DataAccessLayer.SBP_BlotterRECON RECONObj = new DataAccessLayer.SBP_BlotterRECON();
                RECONObj = mapObj.Translate(blotterRECON);
                status   = DAL.UpdateRECON(RECONObj);
            }
            return(status);
        }