コード例 #1
0
        public ActionResult <List <AgeRangeStruct> > AgeRange()
        {
            var ipAddress = HttpContext.Connection.RemoteIpAddress;

            communication.log($"", MethodBase.GetCurrentMethod().Name, ipAddress.ToString());
            List <AgeRangeStruct> ageRangeList = new List <AgeRangeStruct>();

            try
            {
                DbSelect select = new DbSelect(Configuration, _hostingEnvironment);
                ageRangeList = select.ageRange();
                return(ageRangeList);
            }
            catch
            {
                return(ageRangeList);
            }
        }