Exemplo n.º 1
0
        public async Task <IActionResult> Create([FromBody] AddFranchiseModel model)
        {
            var id = await franchiseService.Create(model);

            return(CreatedAtAction(nameof(Get), new { id }));
        }