示例#1
0
        public async Task <IHttpActionResult> CreateScore([FromBody] ScoreCreate scoreCreate)
        {
            var scoreEntity =
                TypeAdapter.Adapt <ScoreCreate, ScoreEntity>(scoreCreate);

            var collection = await Task.Run(() => scoreApl.CreateScore(scoreCreate.CampaignId,
                                                                       scoreCreate.DealershipId,
                                                                       scoreCreate.DealerId,
                                                                       scoreEntity));

            return(this.Ok(collection));
        }
        public async Task <IHttpActionResult> CreateScore([FromBody] ScoreEntity score)
        {
            var collection = await Task.Run(() => scoreApl.CreateScore(score));

            return(this.Ok(collection));
        }