public Response GetAllGenero() { try { var data = _generoRepository.GetAll(); return(Response.BuildSuccess(data)); } catch (Exception) { return(Response.BuildInternalServerError()); } }
public IEnumerable <SelectListItem> GetAllGenero() { var listaGenerosSelect = new List <SelectListItem>(); _generoRepository.GetAll().ForEach(item => listaGenerosSelect .Add(new SelectListItem { Value = item.GeneroId.ToString(), Text = item.Nome })); return(listaGenerosSelect); }
public IEnumerable <Genero> GetGeneros() { return(_generoRepository.GetAll()); }
public IEnumerable <dynamic> GetAll() { return(_generoRepository.GetAll()); }