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

            return(Ok(id));
        }