public ResultData <IEnumerable <TaskMinimalResult> > Edit(TaskEditParameters parameters) { return(GetData <IEnumerable <TaskMinimalResult> >(new SynologyRequestParameters { Additional = parameters })); }
public async Task <ResultData <IEnumerable <ITaskMinimalResult> > > EditAsync(TaskEditParameters parameters) { var res = await this.GetDataAsync <IEnumerable <TaskMinimalResult> >(new SynologyRequestParameters(this) { Additional = parameters }); return(new ResultData <IEnumerable <ITaskMinimalResult> > { Data = res.Data.Cast <ITaskMinimalResult>(), Error = res.Error, Success = res.Success }); }