public IActionMetadata GetMetadataFor(object service, string action, object model) { metadata = new ActionMetadata { Service = service, ServiceType = service.GetType(), Action = action, Model = model ?? new { }, ModelType = model == null ? typeof(object) : model.GetType() }; SetOrderedProperties(); return metadata; }
public IActionMetadata GetMetadataFor(object service, string action, object model) { metadata = new ActionMetadata { Service = service, ServiceType = service.GetType(), Action = action, Model = model ?? new { }, ModelType = model == null ? typeof(object) : model.GetType() }; SetOrderedProperties(); return(metadata); }