public IActionResult GetGeneralInformation() { var elem = _generalInformationRepository.GetAll().EntityToView(); if (elem != null) { return(Ok(elem)); } return(NotFound()); }
public GeneralInformationDto GetGeneralInformation() { return(Mapper.Map <GeneralInformationDto>(_generalInformationRepository.GetAll().FirstOrDefault())); }