Exemplo n.º 1
0
        public IActionResult UnblockUser(string UserId)
        {
            if (string.IsNullOrEmpty(UserId))
            {
                return(RedirectToAction("Error"));
            }
            string id = _blockedUserService.GetAll().First(u => u.UserId == UserId).Id;

            _blockedUserService.Remove(id);

            return(RedirectToAction("Index"));
        }