public ActionResult <ErrorModel> GetError(int errorId) { var error = _errorService.GetById(errorId); if (error == null) { return(NotFound()); } var errorModel = _mapper.Map <ErrorModel>(error); return(Ok(errorModel)); }