AppActs.Client.Service.UserService.Update C# (CSharp) Method

Update() public method

public Update ( User accountUser ) : void
accountUser AppActs.Client.Model.User
return void
        public void Update(User accountUser)
        {
            try
            {
                accountUser.Name = accountUser.Name.Substring(0, 1).ToUpper() +
                                    accountUser.Name.Substring(1, accountUser.Name.Length - 1);

                this.accountUserRepository.Update(accountUser);
            }
            catch (DataAccessLayerException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw new ServiceLayerException(ex);
            }
        }