Beispiel #1
0
 public JsonResult Post(Contract contr)
 {
     _contractManager.Create(contr);
     //ContractManager.PostContract(contr);
     return(new JsonResult("POST запрос выполнен!"));
 }
        public async Task <IActionResult> Create([FromBody] ContractCreateRequest request)
        {
            var id = await _manager.Create(request);

            return(Ok(id));
        }