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(); }
public Task <bool> ModificarViajePerfil(ViajePerfil vp) { throw new NotImplementedException(); }
public Task <bool> ConfirmarPasajero(ViajePerfil vp) { throw new NotImplementedException(); }