public ActionResult <ItemResponse <AllLookUps> > GetAll() { int iCode = 200; BaseResponse response = null; try { AllLookUps item = _service.GetAll(); if (item == null) { iCode = 404; response = new ErrorResponse("Application Resources Not Found"); } else { response = new ItemResponse <AllLookUps> { Item = item }; } } catch (Exception ex) { iCode = 500; base.Logger.LogError(ex.ToString()); response = new ErrorResponse($"Generic Errors: {ex.Message}"); } return(StatusCode(iCode, response)); }
public AllLookUps GetAll() { AllLookUps item = new AllLookUps(); string procName = "[dbo].[LookUp_GetAll]"; _data.ExecuteCmd(procName, inputParamMapper : null, singleRecordMapper : delegate(IDataReader reader, short set) { int index = 0; item.DaysOfWeek = reader.DeserializeObject <List <TwoColumn> >(index++); item.Roles = reader.DeserializeObject <List <TwoColumn> >(index++); item.UserStatus = reader.DeserializeObject <List <TwoColumn> >(index++); item.TokenTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.UrlTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.EventStatus = reader.DeserializeObject <List <TwoColumn> >(index++); item.BlogTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.EventTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.EntityTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.GenderTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.FilesTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.States = reader.DeserializeObject <List <TwoColumn> >(index++); item.JobType = reader.DeserializeObject <List <TwoColumn> >(index++); item.Languages = reader.DeserializeObject <List <TwoColumn> >(index++); item.TitleTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.ExpertiseTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.Tags = reader.DeserializeObject <List <TwoColumn> >(index++); item.HelpNeedTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.CareNeedsTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.ConcernTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.Ratings = reader.DeserializeObject <List <TwoColumn> >(index++); item.PaymentTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.CertificateTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.LicenseTypes = reader.DeserializeObject <List <TwoColumn> >(index++); item.LocationTypes = reader.DeserializeObject <List <TwoColumn> >(index++); } ); return(item); }