public IActionResult Get()
        {
            var ip     = this.HttpContext.Connection.RemoteIpAddress.ToString();
            var result = _timezoneService.GetTimezones();

            return(Ok(result));
        }
Exemple #2
0
        public async Task <IActionResult> UserSettings()
        {
            string username = User.Identity.Name;
            var    items    = timezoneService.GetTimezones();
            string timezone = await timezoneService.GetTimezoneAsync(User.Identity.Name);

            ViewBag.TimeZones     = items;
            ViewBag.Userstimezone = timezone;
            return(View());
        }