Example #1
0
        public IActionResult DeleteFileConfirmation(DateTimeOffset fileUploadDate)
        {
            var model = new DeleteFileConfirmationViewModel
            {
                FileUploadedDate = fileUploadDate.ToString("dd MMM yyyy HH:mm")
            };

            return(View("../BulkUploadApprenticeships/DeleteFileConfirmation/Index", model));
        }
        public IActionResult DeleteFileConfirmation(DateTimeOffset fileUploadDate)
        {
            var model = new DeleteFileConfirmationViewModel();

            TimeZoneInfo tzi = TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time");
            DateTime     dt1 = DateTime.Parse(fileUploadDate.DateTime.ToString());
            DateTime     dt2 = TimeZoneInfo.ConvertTimeFromUtc(dt1, tzi);

            model.FileUploadedDate = dt2.ToString("dd MMM yyyy HH:mm");

            return(View("../Bulkupload/DeleteFileConfirmation/Index", model));
        }