public IActionResult TeamList(BaseRequest req) { EscalationUserResp resp = new EscalationUserResp(); try { if (RequestValidator.TeamList(req)) { if (req.user_id == JwtToken.GetUserID(req.token)) { var user = UserCRUD.GetUser(req.user_id); int?scale = UserCRUD.GetUserRole(req.user_id).Scale; resp.status_code = Ok().StatusCode; resp.status_message = StatusMessage.Success; resp.UserList = UserCRUD.GetEscalationUserList(user.Id, user.CompanyId, scale ?? 0, req.feedback_id); } 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)); }