public IActionResult GetFeedbackCategories(BaseRequest req) { FeedbackCategoryResp resp = new FeedbackCategoryResp(); try { if (RequestValidator.GetFeedbackCategories(req)) { if (req.user_id == JwtToken.GetUserID(req.token)) { resp.status_code = Ok().StatusCode; resp.status_message = StatusMessage.Success; resp.feedback_categories = FeedbackCRUD.GetAllFeedbackCategories(); } else { resp.status_code = Unauthorized().StatusCode; resp.status_message = StatusMessage.UnAuthorised; } } else { resp.status_code = BadRequest().StatusCode; resp.status_message = StatusMessage.BadRequest; } } catch (Exception es) { resp.status_code = 500; resp.status_message = StatusMessage.InternalServerError; } return(Ok(resp)); }