public JsonResult <Models.SBP_BlotterTBO> GetBlotterTBO(int id) { EntitiyMapperBlotterTBO <DataAccessLayer.SBP_BlotterTBO, Models.SBP_BlotterTBO> mapObj = new EntitiyMapperBlotterTBO <DataAccessLayer.SBP_BlotterTBO, Models.SBP_BlotterTBO>(); DataAccessLayer.SBP_BlotterTBO dalBlotterTBO = DAL.GetTBOItem(id); Models.SBP_BlotterTBO products = new Models.SBP_BlotterTBO(); products = mapObj.Translate(dalBlotterTBO); return(Json <Models.SBP_BlotterTBO>(products)); }
public bool UpdateTBO(Models.SBP_BlotterTBO blotterTBO) { bool status = false; if (ModelState.IsValid) { EntitiyMapperBlotterTBO <Models.SBP_BlotterTBO, DataAccessLayer.SBP_BlotterTBO> mapObj = new EntitiyMapperBlotterTBO <Models.SBP_BlotterTBO, DataAccessLayer.SBP_BlotterTBO>(); DataAccessLayer.SBP_BlotterTBO TBOObj = new DataAccessLayer.SBP_BlotterTBO(); TBOObj = mapObj.Translate(blotterTBO); status = DAL.UpdateTBO(TBOObj); } return(status); }