public async Task<IHttpActionResult> SendDiscussMessage(LotteryModel model)
 {
     Discuss discuss = new Discuss();
     discuss.Id = "";
     await DiscussRepository.SaveAsync(discuss);
     return Ok(discuss);
 }
 public async Task<IHttpActionResult> SendDiscussMessage(DiscussMessageModel model)
 {
     Discuss discuss = new Discuss();
     discuss.Id = Utils.GenerateRandomId();
     discuss.Username = 
     await DiscussRepository.SaveAsync(discuss);
     return Ok(discuss);
 }
        public async Task<IHttpActionResult> SendDiscussMessage(DiscussMessageModel model)
        {
            Discuss discuss = new Discuss();
            try
            {
                discuss.Id = Utils.GenerateRandomId();
                discuss.Username = model.Username;
                discuss.FilePath = model.FilePath;
                discuss.Message = model.Message;
                discuss.Status = model.Status;

                await DiscussRepository.SaveAsync(discuss);
            }
            catch (Exception ex)
            {

            }
           
            return Ok(discuss);
        }
        public async Task<IHttpActionResult> SendDiscussMessage(DiscussMessageModel model)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }
            Discuss discuss = new Discuss();
            try
            {
                discuss.Id = Utils.GenerateRandomId();
                discuss.Username = model.Username;
                discuss.FilePath = model.FilePath;
                discuss.Message = model.Message;
                discuss.Status = model.Status;
                discuss.CreatedDate = DateTime.Now;
                await DiscussRepository.SaveAsync(discuss);
            }
            catch (Exception ex)
            {

            }
           
            return Ok(discuss);
        }