Exemple #1
0
        public UserData GetByEmail(string email)
        {
            logger.Info("BLL: Process of getting user by email started");

            try
            {
                UserData temp = daoUsers.GetByEmail(email);

                logger.Info("BLL: Process of getting user by email done");
                return(temp);
            }
            catch (StorageException e)
            {
                logger.Error("BLL: Process of getting user by email failed!");
                throw new Exception("error while process of getting user by email", e);
            }
            catch (Exception e)
            {
                logger.Error("BLL: Process of getting user by email failed!");
                throw new Exception("error while process of getting user by email", e);
            }
        }