public JsonResult <Models.SBP_BlotterProjection> GetblotterProjection(int id) { EntityMapperBlotterProjection <DataAccessLayer.SBP_BlotterProjection, Models.SBP_BlotterProjection> mapObj = new EntityMapperBlotterProjection <DataAccessLayer.SBP_BlotterProjection, Models.SBP_BlotterProjection>(); DataAccessLayer.SBP_BlotterProjection dalblotterProjection = DAL.GetProjectionItem(id); Models.SBP_BlotterProjection products = new Models.SBP_BlotterProjection(); products = mapObj.Translate(dalblotterProjection); return(Json <Models.SBP_BlotterProjection>(products)); }
public bool UpdateProjection(Models.SBP_BlotterProjection blotterProjection) { bool status = false; if (ModelState.IsValid) { EntityMapperBlotterProjection <Models.SBP_BlotterProjection, DataAccessLayer.SBP_BlotterProjection> mapObj = new EntityMapperBlotterProjection <Models.SBP_BlotterProjection, DataAccessLayer.SBP_BlotterProjection>(); DataAccessLayer.SBP_BlotterProjection ProjObj = new DataAccessLayer.SBP_BlotterProjection(); ProjObj = mapObj.Translate(blotterProjection); status = DAL.UpdateProjection(ProjObj); } return(status); }