// GET: api/Regencies public HttpResponseMessage GetRegencies() { var message = Request.CreateErrorResponse(HttpStatusCode.NotFound, "Data Not Found in the Database"); var get = _iRegencyService.Get(); if (get != null) { message = Request.CreateResponse(HttpStatusCode.OK, get); return(message); } return(message); }
// GET: api/Regencies public IEnumerable <Regency> Get() { return(_regencyService.Get()); }
// GET: api/Lesson/5 public Regency Get(int id) { return(_regencyService.Get(id)); }