public IActionResult Create([FromBody] PollModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _pollStorage.Add(new DAL.Domain.Poll { Name = model.Name, Text = model.Text, Options = model.Options, }); return(Ok()); }