public void AddUser(UsersWM webModel)
 {
     try
     {
         _usersOperations.AddUser(UsersMapping.MapToEntity(webModel));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
Esempio n. 2
0
 public bool AddUser(User newUser)
 {
     try
     {
         operationsObj = new UsersOperations();
         {
             return(operationsObj.AddUser(newUser));
         }
     }
     catch (UserException)
     {
         throw;
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
        public bool AddUser(User newUser)
        {
            bool sellerAdded = false;

            try
            {
                uv = new UsersOperations();
                {
                    uv.AddUser(newUser);
                }
            }
            catch (UserException)
            {
                throw;
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
            return(sellerAdded);
        }