private static Controller Controller(Build that, Isop.Domain.Controller type) { return(new Controller { Name = type.Name, Methods = type.GetControllerActionMethods().Select(m => Method(that, type, m)).ToArray() }); }
private static Method Method(Build that, Isop.Domain.Controller type, Isop.Domain.Method m) { var @params = m.GetArguments().Select(p => new Param { Type = typeof(string).FullName, Name = p.Name, Required = p.Required }).ToArray(); return(new Method { Name = m.Name, ClassName = type.Name, Help = that.Controller(type.Name).Action(m.Name).Help(), Parameters = new List <Param>(@params.ToArray()) }); }