public IActionResult Delete(int id)
        {
            // Check if user is logged in
            if (User.Identity.IsAuthenticated)
            {
                // Getting logged in user's id
                var userId = _userManager.GetUserId(HttpContext.User);

                if (_advertRepository.CanDelete(userId, id))
                {
                    _advertRepository.Delete(id);

                    // TODO: Redirect to proper page with detailed information
                    return(Redirect("/"));
                }
                else
                {
                    // TODO: Redirect to proper page with detailed information
                    return(Redirect("/"));
                }
            }

            return(Redirect("/"));
        }