/// <inheritdoc /> public System.Threading.Tasks.Task <bool> UpdateAsync(string projectId, string problemId, Models.Problem.ProblemUpdate form) { return(Task.FromResult(true)); }
/// <inheritdoc /> public System.Threading.Tasks.Task <bool> UpdateAsync(string projectId, string problemId, Models.Problem.ProblemUpdate form) { throw new System.NotImplementedException(); }
/// <inheritdoc /> public async System.Threading.Tasks.Task <bool> UpdateAsync(string projectId, string problemId, Models.Problem.ProblemUpdate form) { // Current form data var data = await this.GetAsync(projectId, problemId); // Merges in new changes data.Description = form.Description; data.Name = form.Name; data.SuccessCriteria = form.SuccessCriteria; data.Bets = new System.Collections.Generic.List <Models.General.ListItem>(); // Does update return(await this._serviceBase.DocumentUpdate(Problem.PARTITION + ":" + problemId, data)); }
/// <inheritdoc /> public System.Threading.Tasks.Task <bool> UpdateAsync(string projectId, string problemId, Models.Problem.ProblemUpdate form) { throw new HttpRequestException("Http error other", new System.Exception("Http error other"), System.Net.HttpStatusCode.Forbidden); }
/// <inheritdoc /> public System.Threading.Tasks.Task <bool> UpdateAsync(string projectId, string problemId, Models.Problem.ProblemUpdate form) { throw new HttpRequestException("Document not found", new System.Exception("Document not found"), System.Net.HttpStatusCode.NotFound); }