/// <summary>
 /// 添加一条战利品统计
 /// </summary>
 /// <param name="spoilsStatistics">战利品数据</param>
 /// <returns></returns>
 public bool Add(Spoils spoilsStatistics)
 {
     spoilsStatistics.CreateTime = DateTime.Now;
     this.DataBaseContext.Spoils.Add(spoilsStatistics);
     this.DataBaseContext.SaveChanges();
     return(true);
 }
        public Result Add(string spoilsStatistics)
        {
            Result Result = new Result();

            try
            {
                Spoils spoils = Newtonsoft.Json.JsonConvert.DeserializeObject <Spoils>(spoilsStatistics);
                spoilsStatisticsService.Add(spoils);
            }
            catch (Exception)
            {
                Result.SetFail();
            }
            return(Result);
        }