public List <DropDownListDTO> Get_Lab_List(DropDownListDTO searchModel) { log.MethodStart(); List <DropDownListDTO> objList = new List <DropDownListDTO>(); using (var trans = _db.Database.BeginTransaction()) { try { objList = _db.DropDownListDTOs.FromSqlRaw <DropDownListDTO>("sp_GET_DDL_Lab {0}", searchModel.data_Value).ToList(); trans.Commit(); } catch (Exception ex) { // TODO: Handle failure trans.Rollback(); } finally { trans.Dispose(); } } log.MethodFinish(); return(objList); }
public async Task <List <DropDownListDTO> > GetLabListByModelAsync(DropDownListDTO searchModel) { List <DropDownListDTO> objList = new List <DropDownListDTO>(); objList = await _apiHelper.GetDataListByModelAsync <DropDownListDTO, DropDownListDTO>("dropdownlist_api/GetLabList", searchModel); return(objList); }
public List <DropDownListDTO> GetLabList([FromBody] DropDownListDTO searchModel) { var objReturn = _service.Get_Lab_List(searchModel); return(objReturn); }