[HttpGet("getReviews/{officeId}")] //done public ActionResult <List <Review> > GetOfficeReviews(int officeId) { try { List <Review> officeReview = reviewDAO.GetOfficeReviews(officeId); return(officeReview); } catch (Exception) { throw new NotImplementedException("This method is not implemented"); } throw new NotImplementedException("This method is not implemented"); }
[HttpGet("myOffices/{officeId}")] //Done public ActionResult <List <Review> > GetMyOfficeReviews(int officeId) { try { List <Review> myOfficeReview = reviewDAO.GetOfficeReviews(officeId); if (myOfficeReview.Count > 0) { return(Ok(myOfficeReview)); } else { return(NoContent()); } } catch (Exception) { return(StatusCode(500)); } }