private async Task <IActionResult> GetViewByUserId(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(NotFound());
            }

            var entity = await _repository.GetById(id);

            return(entity.HasValue ? (IActionResult)base.View(entity.Value) : base.NotFound());
        }