Example #1
0
        public async Task <bool> DisableOrEnableUser(int id)
        {
            var oUser = await _repository.GetById(id);

            oUser.ApplicationUserStatusId = oUser.ApplicationUserStatusId == 1 ? 2 : 1;

            return(await _repository.DisableOrEnableUser(oUser));
        }