Exemplo n.º 1
0
 public IActionResult OnPostAccept(int UserID, int RouteID, int RequestID)
 {
     SuccesAccept = _userService.GetOneUser(UserID).FirstName + " " + _userService.GetOneUser(UserID).LastName + " has been accepted to your route.";
     _routeService.AcceptRequest(UserID, RouteID);
     _routeService.DeleteRequest(RequestID);
     //_routeService.ReduceSpace(RouteID);
     liste          = _routeService.GetAllRequests(userID);
     ProfilePicture = _iPicture.GetProfilePicture(userID);
     return(Page());
 }