/// <summary> /// Edited movie data send to API /// </summary> /// <param name="data">Movie.Data</param> /// <returns>HttpResponseMessage</returns> public static async Task <HttpResponseMessage> Movie(Movie.Data data) { return(await Administration.Edit(Create.HttpContent <Objects.Communication.Edit>(new Objects.Communication.Edit() { auth = GlobalVar.GlobalAuthUser, movie = data }))); }
/// <summary> /// Enable or disable movie /// </summary> /// <param name="movie">Movie.Data</param> /// <param name="user">User.Info</param> /// <returns>HttpResponseMessage</returns> public static async Task <HttpResponseMessage> MovieStatus(Movie.Data movie, User.Info user = null) { if (user == null) { user = GlobalVar.GlobalCurrentUserInfo; } return(await Administration.ChangeMovieStatus( Create.HttpContent <AuthMovieEdit>( new AuthMovieEdit() { user = user, movie = movie } ))); }