コード例 #1
0
        public ActionResult Create(CreateInterestModel model)
        {
            var newInterest = new Interest()
            {
                Name        = model.Name,
                Description = model.Description
            };

            Services.InterestService.AddInterest(newInterest);

            return(RedirectToAction("List"));
        }
コード例 #2
0
        public ActionResult Create(int pageNumber = 1)
        {
            var model = new CreateInterestModel();

            return(View(model));
        }