Ejemplo n.º 1
0
 public IActionResult Put([FromRoute] int id, [FromBody] CatalogTypeDto catalogType)
 {
     return(new JsonVoidResult
     {
         Errors = null,
         StatusCode = HttpStatusCode.OK,
         Message = null
     });
 }
Ejemplo n.º 2
0
 public IActionResult Post([FromBody] CatalogTypeDto catalogType)
 {
     return(new JsonResult <int>
     {
         Errors = null,
         StatusCode = HttpStatusCode.Created,
         Data = CatalogTypesController.CatalogTypeId++,
         Message = null
     });
 }