public ActionResult <IEnumerable <Error> > GetErrors()
        {
            var errors = _service.GetAllErros();

            if (errors == null)
            {
                return(NotFound());
            }
            else
            {
                List <ErrorViewModel> usersViewModels = errors.
                                                        Select(x => _mapper.Map <ErrorViewModel>(x)).
                                                        ToList();

                return(Ok(usersViewModels));
            }
        }