public async Task<IHttpActionResult> SendDiscussMessage(LotteryModel model) { Discuss discuss = new Discuss(); discuss.Id = ""; await DiscussRepository.SaveAsync(discuss); return Ok(discuss); }
public async Task<IHttpActionResult> GetLottery(LotteryModel model) { Lottery lottery = await LotteryRepository.FindOneByAsync(l => l.JackpotsDate.DayOfYear == model.LotteryDate.DayOfYear); return Ok(lottery); }
public async Task<IHttpActionResult> SendDiscussMessage(LotteryModel model) { Lottery lottery = await DiscussRepository.SaveAsync(); return Ok(lottery); }