public HttpResponseMessage PersonelParametreDepartmanGetir() { personelRepository = new PersonelRepository(); parametre = personelRepository.PersonelParametreleri(); if (parametre != null) { var ozet = parametre.Where(o => o.parametre_grup_id == "PRDEPART").Select(o => new { parametre_id = o.parametre_id, parametre_adi = o.parametre_adi, }); return(Request.CreateResponse(HttpStatusCode.OK, ozet)); } else { return(Request.CreateResponse(HttpStatusCode.NotFound, new Models.AnonymousModels.NotFound { message = "No Record" })); } }