Ejemplo n.º 1
0
 public JsonResult AnonTypeWithDictionaryProperty([FromBody] CustomGroupObj3 model, [FromServices] string service)
 {
     return(Json(new
     {
         listObj = new List <CustomGroupObject1>()
     }));
 }
Ejemplo n.º 2
0
 public CustomGroupObject1 WithFromQuery([FromQuery] string id, [FromBody] CustomGroupObj3 body, [FromServices] AService service)
 {
     return(new CustomGroupObject1()
     {
         AnotherStringList = new List <string>()
         {
             id, body.StringProp
         }
     });
 }