Esempio n. 1
0
        public async Task UnirseViaje(int idViaje)
        {
            ViajePerfil vp   = new ViajePerfil();
            var         user = await _userManager.FindByNameAsync(_httpContextAccessor.HttpContext.User.Identity.Name);

            vp.PerfilId = user.Id;

            vp.ViajeId             = idViaje;
            vp.EstadoViajePerfilId = EstadoViajePerfilId.PendienteAceptacion;
            _repo.Add(vp);
            _repo.SaveChanges();
        }
Esempio n. 2
0
 public Task <bool> ModificarViajePerfil(ViajePerfil vp)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public Task <bool> ConfirmarPasajero(ViajePerfil vp)
 {
     throw new NotImplementedException();
 }