Example #1
0
        /// <inheritdoc />
        Task <Recursos> RemoteService.GuardarRecursos(Recursos valor)
        {
            var arguments = new object[] { valor };
            var func      = requestBuilder.BuildRestResultFuncForMethod("GuardarRecursos", new Type[] { typeof(Recursos) });

            return((Task <Recursos>)func(Client, arguments));
        }
 public Detalles(int iDDetalle, DateTime fecha, string tiempo, Recursos recurso)
 {
     IDDetalle = iDDetalle;
     Fecha     = fecha;
     Tiempo    = tiempo;
     Recurso   = recurso;
 }
Example #3
0
        public Recursos[] GetRecursos()
        {
            Recursos[] lista = new Recursos[10];
            lista[0] = new Recursos(1, "Usuario1", new Usuarios(1, "Usuario1", "1234"));


            return(lista);
        }
Example #4
0
 public Tareas(int id, string titulo, string vencimiento, string estimacion, Recursos responsable, bool estado)
 {
     this.Id          = id;
     this.Titulo      = titulo;
     this.Vencimiento = vencimiento;
     this.Estimacion  = estimacion;
     this.Responsable = responsable;
     this.Estado      = estado;
 }
 public Detalles(int iDDetalle, DateTime fecha, string tiempo, int idRecursos, Recursos recurso, int iDTarea)
 {
     IDDetalle  = iDDetalle;
     Fecha      = fecha;
     Tiempo     = tiempo;
     IdRecursos = idRecursos;
     Recurso    = recurso;
     IDTarea    = iDTarea;
 }
Example #6
0
 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;
 }
Example #7
0
 public Tareas(int iDTarea, string titulo, DateTime vencimiento, int estimacion, int idRecursos, Recursos responsable, bool estado)
 {
     IDTarea     = iDTarea;
     Titulo      = titulo;
     Vencimiento = vencimiento;
     Estimacion  = estimacion;
     IdRecursos  = idRecursos;
     Responsable = responsable;
     Estado      = estado;
 }
Example #8
0
        public async Task <Recursos> Save(Recursos value)
        {
            /*
             *  if (value.IDRecurso == 0)
             *  {
             *      await context.Recursos.AddAsync(value);
             *  }
             *  else
             *  {
             *      context.Recursos.Update(value);
             *  }
             *  await context.SaveChangesAsync();
             *  return value;
             */
            var remoteService = RestService.For <IRemoteService>("https://localhost:44341/api/");

            return(await remoteService.GuardarRecursos(value));
        }
Example #9
0
        }                     //constructor implicito

        public Tareas(int id, string titulo, string vencimiento, string estimacion, int IdRecursos, Recursos responsable, bool estado)
        {
            this.id            = id;
            this.titulo        = titulo;
            this.vencimiento   = vencimiento;
            this.estimacion    = estimacion;
            this.responsableid = IdRecursos;
            this.responsable   = responsable;
            this.estado        = estado;
        }
Example #10
0
        public async Task <Recursos> Save(Recursos value)
        {
            var remoteService = RestService.For <IRemoteService>("https://localhost:44357/api/");

            return(await remoteService.GuardarRecursos(value));
        }