public ActionResult <IEnumerable <StorageReadDto> > GetAllStorages() { var item = _repository.GetAllStorages(); if (item != null) { return(Ok(_mapper.Map <IEnumerable <StorageReadDto> >(item))); } else { return(NotFound()); } }