Esempio n. 1
0
        public async Task <IActionResult> CreateLineup(Lineup lineup, int userId)
        {
            var lineupToCreate = _mapper.Map <Lineup>(lineup);

            var lineupToReturn = await _repo.AddLineup(lineupToCreate, userId);

            return(CreatedAtRoute("GetLineup", new { Controller = "Lineup", id = lineup.Id }, lineupToReturn));
        }