public ActionResult OnGetSetores() { var setores = _setorService.GetAll() .Select(s => new { id = s.SetorId, nome = s.Nome }).ToList(); return(Content(JsonConvert.SerializeObject(setores.Distinct()))); }