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)); }
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); }