public IActionResult GetAll() { var result = _ogrenciServis.GetAll(); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IEnumerable <Ogrenci> GetOgrenci() { return(_ogrenciService.GetAll()); }