public IHttpActionResult GetActivityDetail([FromBody] RequestGetActivityDetail request) { var tokenResult = IdentityValid.ValidateToken(request.Token); if (!tokenResult.IsSuccess) { return(Json(tokenResult)); } var bll = new ActivityBLL(); var data = bll.Get(o => o.UserName == tokenResult.userName && o.ActivityId == request.ActivityId); return(Json(data)); }