Пример #1
0
        /// <inheritdoc />
        public async Task <bool> Update(string projectId, Models.Project.ProjectUpdate form)
        {
            // Current form data
            var data = await this.Get(projectId);

            // Merges in new changes
            data.Description = form.Description;
            data.Name        = form.Name;
            data.Problems    = new System.Collections.Generic.List <Models.General.ListItem>();

            // Does update
            return(await this._serviceBase.DocumentUpdate(Project.PARTITION + ":" + projectId, data));
        }
Пример #2
0
 /// <inheritdoc />
 public Task <bool> Update(string projectId, Models.Project.ProjectUpdate form)
 {
     return(Task.FromResult(true));
 }
Пример #3
0
 /// <inheritdoc />
 public Task <bool> Update(string projectId, Models.Project.ProjectUpdate form)
 {
     throw new HttpRequestException("Document not found", new System.Exception("Document not found"), System.Net.HttpStatusCode.NotFound);
 }
Пример #4
0
 /// <inheritdoc />
 public Task <bool> Update(string projectId, Models.Project.ProjectUpdate form)
 {
     throw new System.NotImplementedException();
 }
Пример #5
0
 /// <inheritdoc />
 public Task <bool> Update(string projectId, Models.Project.ProjectUpdate form)
 {
     throw new System.Exception("Exception");
 }