public ActionResult Create(DragonCreate model) { if (!ModelState.IsValid) { return(View(model)); } var userId = Guid.Parse(User.Identity.GetUserId()); var service = new DragonService(userId); service.CreateDragon(model); return(RedirectToAction("Index")); }
public DragonManager(DragonService dragonService, DragonStorage dragonStorage) { this.dragonService = dragonService; this.dragonStorage = dragonStorage; }