public List <TBConfigDTO> GetTBConfig(TBConfigDTO searchModel) { log.MethodStart(); List <TBConfigDTO> objList = new List <TBConfigDTO>(); //var searchModel = JsonSerializer.Deserialize<LogProcessSearchDTO>(param); using (var trans = _db.Database.BeginTransaction()) { try { objList = _db.TBConfigDTOs.FromSqlRaw <TBConfigDTO>("sp_GET_TBConfig_New {0}", searchModel.tbc_mnu_code).ToList(); trans.Commit(); } catch (Exception ex) { // TODO: Handle failure trans.Rollback(); } finally { trans.Dispose(); } } log.MethodFinish(); return(objList); }
public async Task <List <TBConfigDTO> > Get_TBConfig_DataList_Async(TBConfigDTO param) { List <TBConfigDTO> objList = new List <TBConfigDTO>(); objList = await _apiHelper.GetDataListByModelAsync <TBConfigDTO, TBConfigDTO>("tbconfig_api/Get_DataList", param); return(objList); }
public IEnumerable <TBConfigDTO> Get_DataList([FromBody] TBConfigDTO searchModel) { var objReturn = _service.GetTBConfig(searchModel); return(objReturn); }