Exemplo n.º 1
0
        public IActionResult GetGeneralInformation()
        {
            var elem = _generalInformationRepository.GetAll().EntityToView();

            if (elem != null)
            {
                return(Ok(elem));
            }

            return(NotFound());
        }
Exemplo n.º 2
0
 public GeneralInformationDto GetGeneralInformation()
 {
     return(Mapper.Map <GeneralInformationDto>(_generalInformationRepository.GetAll().FirstOrDefault()));
 }