Пример #1
0
        public ActionResult Create(MemoryCreate mem)
        {
            var service = new MemoryService();

            if (ModelState.IsValid)
            {
                service.CreateMemory(mem);
                return(RedirectToAction("Index"));
            }
            return(View(mem));
        }