12345678910111213141516171819202122 |
- using androidAPI.BaseConneckion;
- using androidAPI.ModelBase;
- using Microsoft.AspNetCore.Mvc;
- namespace androidAPI.Controllers
- {
- [Route("api/[controller]")]
- [ApiController]
- [ApiExplorerSettings(GroupName = "Действия с полом собачки")]
- public class GenderController : Controller
- {
- MainTheApplication oo = new MainTheApplication();
- [HttpPost]
- public IActionResult Index(Gender gender)
- {
- oo.Add(gender);
- oo.SaveChanges();
- return Ok(gender);
- }
- }
- }
|