//Lägger till en film med en roll
        public void MovieFormView_InsertItem(Movie movie, Role role)
        {
            if (Page.ModelState.IsValid)
            {
                try
                {
                    Service.InsertMovie(movie, role);

                    MessageStatus = "The movie was added successfully.";
                    Response.RedirectToRoute("Movies");
                    Context.ApplicationInstance.CompleteRequest();
                }
                catch (Exception)
                {
                    ModelState.AddModelError(String.Empty, "An error occured when trying to add a movie.");
                }
            }
        }
        //Uppdaterar en film
        public void UpdateMovie(Movie movie)
        {
            ICollection<ValidationResult> validationResults;
            if (!movie.Validate(out validationResults))
            {
                var ex = new ValidationException("The object did not pass the validation.");
                ex.Data.Add("ValidationResult", validationResults);
                throw ex;
            }

            MovieDAL.UpdateMovie(movie);
        }