Esempio n. 1
0
        public async Task <ActionResult <Module> > Create(
            [FromBody] Module model,
            [FromServices] DataContext dbContext)
        {
            if (ModelState.IsValid)
            {
                await _rep.Create(model);

                return(Ok(model));
            }

            return(BadRequest(ModelState));
        }