public IActionResult UploadFrame() { var model = new UploadFrameFilesViewModel(); model.UploadMessage = "Изберете файл с рамка за качване."; model.AllFrames = framesService.ShowAllFrames(); return(View(model)); }
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, }); }