public JsonResult <Models.SBP_BlotterRTGS> GetBlotterRTGS(int id) { EntityMapperBlotterRTGS <DataAccessLayer.SBP_BlotterRTGS, Models.SBP_BlotterRTGS> mapObj = new EntityMapperBlotterRTGS <DataAccessLayer.SBP_BlotterRTGS, Models.SBP_BlotterRTGS>(); DataAccessLayer.SBP_BlotterRTGS dalBlotterRTGS = DAL.GetRTGSItem(id); Models.SBP_BlotterRTGS products = new Models.SBP_BlotterRTGS(); products = mapObj.Translate(dalBlotterRTGS); return(Json <Models.SBP_BlotterRTGS>(products)); }
public bool UpdateRTGS(Models.SBP_BlotterRTGS blotterRTGS) { bool status = false; if (ModelState.IsValid) { EntityMapperBlotterRTGS <Models.SBP_BlotterRTGS, DataAccessLayer.SBP_BlotterRTGS> mapObj = new EntityMapperBlotterRTGS <Models.SBP_BlotterRTGS, DataAccessLayer.SBP_BlotterRTGS>(); DataAccessLayer.SBP_BlotterRTGS RTGSObj = new DataAccessLayer.SBP_BlotterRTGS(); RTGSObj = mapObj.Translate(blotterRTGS); status = DAL.UpdateRTGS(RTGSObj); } return(status); }