Exemplo n.º 1
0
        public IActionResult UploadCross()
        {
            var model = new UploadCrossesFilesViewModel();

            model.UploadMessage = "Изберете файл с кръст за качване.";
            model.AllCrosses    = crossesService.ShowAllCrosses();

            return(View(model));
        }
Exemplo n.º 2
0
 private MakeItViewModel AddValuesToModel(string userName)
 {
     return(new MakeItViewModel
     {
         CurrentFrame = tempData[userName].CurrentFrame,
         CurrentCross = tempData[userName].CurrentCross,
         CurrentText = tempData[userName].CurrentText,
         CrossText = tempData[userName].CrossText,
         AfterCrossText = tempData[userName].AfterCrossText,
         FullName = tempData[userName].FullName,
         Panahida = tempData[userName].Panahida,
         From = tempData[userName].From,
         Year = tempData[userName].Year,
         Picture = tempData[userName].Picture,
         AllFrames = framesService.ShowAllFrames(),
         AllCrosses = crossesService.ShowAllCrosses(),
         AllTexts = textsService.ShowAllTexts(),
         Elements = tempData[userName].Elements,
     });
 }