示例#1
0
        public async Task <IHttpActionResult> ClearLotteryAsync([Required] ClearLotteryRequest request)
        {
            var result = await _prizeService.DeleteAsync(a => a.PrizeTypeId == request.PrizeTypeId);

            if (result > 0)
            {
                return(Succeed("清除成功"));
            }
            else
            {
                return(Fail("清除失败"));
            }
        }