Пример #1
0
        public async Task <IActionResult> DeleteCross(string crossId)
        {
            string crossPath = await crossesService.GetCrossPathByIdAsync(crossId);

            var model = new CrossViewModel
            {
                FilePath = crossPath,
                CrossId  = crossId,
            };

            return(View(model));
        }
Пример #2
0
        public async Task <IActionResult> ChangeCross(string crossId, string type)
        {
            var crossPath = crossesService.GetCrossPathByIdAsync(crossId);

            tempData[User.Identity.Name].CurrentCross = await crossPath;

            if (type == "no")
            {
                return(RedirectToAction(nameof(MakeItWithoutPicture)));
            }

            return(RedirectToAction(nameof(MakeIt)));
        }