/// <inheritdoc /> Task <Tareas> RemoteService.GuardarTareas(Tareas valor) { var arguments = new object[] { valor }; var func = requestBuilder.BuildRestResultFuncForMethod("GuardarTareas", new Type[] { typeof(Tareas) }); return((Task <Tareas>)func(Client, arguments)); }
public Detalles(int id, string fecha, string tiempo, int IdRecurso, Recursos recurso, int IdTarea, Tareas tarea) { this.id = id; this.Fecha = fecha; this.Tiempo = tiempo; this.IdRecurso = IdRecurso; this.Recur = recurso; this.IdTarea = IdTarea; this.Tarea = tarea; }
public Tareas[] GetTareas() { Tareas[] lista = new Tareas[10]; lista[0] = new Tareas(1, "Tarea0", "20/10/20", 2, "usuario1", true); lista[1] = new Tareas(1, "Tarea1", "20/10/20", 2, "usuario1", true); lista[2] = new Tareas(1, "Tarea2", "20/10/20", 2, "usuario1", true); lista[3] = new Tareas(1, "Tarea3", "20/10/20", 2, "usuario1", true); lista[4] = new Tareas(1, "Tarea4", "20/10/20", 2, "usuario1", true); lista[5] = new Tareas(1, "Tarea5", "20/10/20", 2, "usuario1", true); lista[6] = new Tareas(1, "Tarea6", "20/10/20", 2, "usuario1", true); lista[7] = new Tareas(1, "Tarea7", "20/10/20", 2, "usuario1", true); lista[8] = new Tareas(1, "Tarea8", "20/10/20", 2, "usuario1", true); lista[9] = new Tareas(1, "Tarea9", "20/10/20", 2, "usuario1", true); return(lista); }
public async Task <Tareas> Save(Tareas value) { /* * if (value.IDTarea == 0) * { * await context.Tareas.AddAsync(value); * } * else * { * context.Tareas.Update(value); * } * await context.SaveChangesAsync(); * return value; */ var remoteService = RestService.For <IRemoteService>("https://localhost:44341/api/"); return(await remoteService.GuardarTareas(value)); }
public async Task <Tareas> Save(Tareas value) { var remoteService = RestService.For <IRemoteService>("https://localhost:44357/api/"); return(await remoteService.GuardarTareas(value)); }