コード例 #1
0
        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;
            }
        }
コード例 #2
0
        private bool checkUserExist(UserDetailsView user, string mail)
        {
            Userservice userservice = new Userservice();

            return(!userservice.GetUserByMail(mail));
        }
コード例 #3
0
        private bool checkUserExist(DogDetailsView dog, int userid)
        {
            Userservice userservice = new Userservice();

            return(userservice.GetUser(userid) != null);
        }