Ejemplo n.º 1
0
        public IHttpActionResult GetActivityDel([FromBody] RequestGetActivityDetail request)
        {
            var tokenResult = IdentityValid.ValidateToken(request.Token);

            if (!tokenResult.IsSuccess)
            {
                return(Json(tokenResult));
            }

            var bll       = new ActivityBLL();
            var isSuccess = bll.Delete(o => o.UserName == tokenResult.userName && o.ActivityId == request.ActivityId);

            return(Json(new { isSuccess = isSuccess }));
        }