public ActionResult AddResort(Resort resort) { bool check = repository.AddResort(resort, User.Identity.GetUserId()); if (check) { return(RedirectToAction("Index", "Owner")); } else { return(View("Error", "Error adding Resort")); } }