public UserDetailsView GetUserOrders(int UserID) { UserDetailsView userDetails = new UserDetailsView(); // שליפת כל ההזמנות מטבלתOrdersTbl try { Userservice userservice = new Userservice(); userDetails = userservice.GetUser(UserID); OrdersForUserView ordersForUserView = GetUserOrdersList(UserID); userDetails.UserReservations = ordersForUserView.UserReservations; return(userDetails); } catch (Exception ex) { throw ex; } }
private bool checkUserExist(UserDetailsView user, string mail) { Userservice userservice = new Userservice(); return(!userservice.GetUserByMail(mail)); }
private bool checkUserExist(DogDetailsView dog, int userid) { Userservice userservice = new Userservice(); return(userservice.GetUser(userid) != null); }