示例#1
0
        public IActionResult BackstorySelectOutcome([FromBody] PartyOutcomePostVM outcomeVM)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest());
            }
            if (outcomeVM.CaseID == -1)
            {
                service.ApplyRelationTag(outcomeVM.OutcomeIndex, outcomeVM.PlayerID);
            }
            else
            {
                service.ApplyCase(outcomeVM.CaseID, outcomeVM.OutcomeIndex, outcomeVM.PlayerID);
            }
            //PartyBackstoryVM ret;
            //if (data.CaseNumber == 0)
            //{
            //    ret = backService.GetValidCase(data.ID); // Replace with relation
            //}
            //else
            //{
            //    ret = backService.GetValidCase(data.ID);
            //}

            //return Json(ret);
            return(Ok());
        }