Beispiel #1
0
        public ActionResult Create(GrantFormViewModel newGrant)
        {
            if (newGrant != null)
            {
                var grant = Mapper.Map <GrantFormViewModel, Grant>(newGrant);
                grantService.CreateGrant(grant);

                grantService.SaveGrant();
            }

            var award = awardService.GetAward(newGrant.OriginalAwardId);

            return(RedirectToAction("Index", new { award = "" }));
        }