示例#1
0
 public IActionResult Put([FromRoute] int id, [FromBody] CatalogFieldDto catalogField)
 {
     return(new JsonVoidResult
     {
         Errors = null,
         StatusCode = HttpStatusCode.OK,
         Message = null
     });
 }
示例#2
0
 public IActionResult LinkFieldToCatalog([FromRoute] int id, [FromBody] CatalogFieldDto catalogField)
 {
     return(new JsonResult <int>
     {
         Errors = null,
         StatusCode = HttpStatusCode.OK,
         Data = CatalogFieldsController.CatalogFieldId++,
         Message = null
     });
 }
示例#3
0
 public IActionResult Post([FromBody] CatalogFieldDto value)
 {
     return(new JsonResult <int>
     {
         Errors = null,
         StatusCode = HttpStatusCode.Created,
         Data = CatalogFieldsController.CatalogFieldId++,
         Message = null
     });
 }