Exemplo n.º 1
0
 public ResultData <IEnumerable <TaskMinimalResult> > Edit(TaskEditParameters parameters)
 {
     return(GetData <IEnumerable <TaskMinimalResult> >(new SynologyRequestParameters
     {
         Additional = parameters
     }));
 }
Exemplo n.º 2
0
        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
            });
        }