public List <CommentModel> GetCommentsByBoatId(int boatId) { if (boatId != 0) { return(comment.GetCommentsByBoatId(boatId)); } throw new HttpResponseException(HttpStatusCode.NotFound); }
public List <CommentModel> GetBoatDetailsById(int boatId, int commentId) { CommentBL comment = new CommentBL(); if (boatId != 0) { a = comment.GetCommentsByBoatId(boatId); } return(a); }