public JsonResult <List <Models.SP_SBPGetLoginInfo_Result> > GetAllBlotterLoginById(int id) { EntityMapperBlotterLogin <DataAccessLayer.SP_SBPGetLoginInfoById_Result, Models.SP_SBPGetLoginInfo_Result> mapObj = new EntityMapperBlotterLogin <DataAccessLayer.SP_SBPGetLoginInfoById_Result, Models.SP_SBPGetLoginInfo_Result>(); List <DataAccessLayer.SP_SBPGetLoginInfoById_Result> blotterList = DAL.GetBlotterLoginById(id); List <Models.SP_SBPGetLoginInfo_Result> blotter = new List <Models.SP_SBPGetLoginInfo_Result>(); foreach (var item in blotterList) { blotter.Add(mapObj.Translate(item)); } return(Json <List <Models.SP_SBPGetLoginInfo_Result> >(blotter)); }
public JsonResult <List <Models.SP_SBPGetLoginInfo_Result> > GetAllBlotterLogin(UserProfile up) { EntityMapperBlotterLogin <DataAccessLayer.SP_SBPGetLoginInfo_Result, Models.SP_SBPGetLoginInfo_Result> mapObj = new EntityMapperBlotterLogin <DataAccessLayer.SP_SBPGetLoginInfo_Result, Models.SP_SBPGetLoginInfo_Result>(); List <DataAccessLayer.SP_SBPGetLoginInfo_Result> blotterList = DAL.GetBlotterLogin(up.UserName, up.Password); List <Models.SP_SBPGetLoginInfo_Result> blotter = new List <Models.SP_SBPGetLoginInfo_Result>(); foreach (var item in blotterList) { blotter.Add(mapObj.Translate(item)); } return(Json <List <Models.SP_SBPGetLoginInfo_Result> >(blotter)); }