Exemple #1
0
        public IHttpActionResult AddNewDirectorForFilm(AddDirectorFilm model)
        {
            DirectorService serviceType = new DirectorService();
            var             add         = serviceType.AddDirectorForFilm(model.FilmID, model.DirectorID);

            if (add >= 1)
            {
                return(Ok(model));
            }
            else
            {
                return(BadRequest("Thêm director thất bại"));
            }
        }