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 JsonResult <List <Models.SP_GETAllTransactionTitles_Result> > GetAllRTGSTransactionTitles() { EntityMapperBlotterRTGS <DataAccessLayer.SP_GETAllRTGSTransactionTitles_Result, Models.SP_GETAllTransactionTitles_Result> mapObj = new EntityMapperBlotterRTGS <DataAccessLayer.SP_GETAllRTGSTransactionTitles_Result, Models.SP_GETAllTransactionTitles_Result>(); List <DataAccessLayer.SP_GETAllRTGSTransactionTitles_Result> blotterRTGSList = DAL.GetAllRTGSTransactionTitles(); List <Models.SP_GETAllTransactionTitles_Result> blotterRTGS = new List <Models.SP_GETAllTransactionTitles_Result>(); foreach (var item in blotterRTGSList) { blotterRTGS.Add(mapObj.Translate(item)); } return(Json <List <Models.SP_GETAllTransactionTitles_Result> >(blotterRTGS)); }
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); }
public JsonResult <List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> > GetAllBlotterRTGSDashboard(int UserID, int BranchID, int CurID, int BR, string DateVal) { EntityMapperBlotterRTGS <DataAccessLayer.SP_GetAll_SBPBlotterRTGS_Dashboard_Result, Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> mapObj = new EntityMapperBlotterRTGS <DataAccessLayer.SP_GetAll_SBPBlotterRTGS_Dashboard_Result, Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result>(); List <DataAccessLayer.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> blotterRTGSList = DAL.GetAllBlotterRTGSDashboard(UserID, BranchID, CurID, BR, DateVal); List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> blotterRTGS = new List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result>(); foreach (var item in blotterRTGSList) { blotterRTGS.Add(mapObj.Translate(item)); } return(Json <List <Models.SP_GetAll_SBPBlotterRTGS_Dashboard_Result> >(blotterRTGS)); }