public ActionResult Update(Actor actor, HttpPostedFileBase file)
        {
            string image = MultipartFormUpload.setUpload("actor/upload", file);

            if (image != null)
            {
                actor.Photo = image;
                HttpResponseMessage response = GlobalWebApiClients.WebApiClient.PostAsJsonAsync("actor/Update", actor).Result;
            }

            return(RedirectToAction("Index"));
        }
        public ActionResult Create(Movie movie, HttpPostedFileBase file)
        {
            string image = MultipartFormUpload.setUpload("movie/upload", file);

            if (image != null)
            {
                movie.Photo = image;
                HttpResponseMessage response = GlobalWebApiClients.WebApiClient.PostAsJsonAsync("movie/insert", movie).Result;
            }

            return(RedirectToAction("Index"));
        }