Пример #1
0
        public IActionResult PostMedia(string Text, string Ref, string Name, DateTime dat)
        {
            Media media = new Media()
            {
                MediaName = Ref,
                Text      = Text,
                Name      = Name,
                Day       = dat.Day,
                Month     = Enum.GetName(typeof(MonthEnum), dat.Month - 1),
                Year      = dat.Year
            };

            mediaManager.Insert(media);
            return(RedirectToAction("Media"));
        }