Exemplo n.º 1
0
        public BoApiResponse <List <Report> > getVerdicts([FromBody()] ConfigMulti values)
        {
            var response = BoApiResponse <List <Report> > .Create(new List <Report>());

            foreach (var config in values.getConfigs())
            {
                response.Result.Add(new Paternity(config).getVerdict());
            }
            return(response);
        }
Exemplo n.º 2
0
 public BoApiResponse <List <decimal> > getPaternityIndices([FromBody()] Config values)
 {
     return(BoApiResponse <List <decimal> > .Create(new Paternity(values).getPaternityIndices()));
 }
Exemplo n.º 3
0
 public BoApiResponse <Report> getVerdict([FromBody()] Config values)
 {
     return(BoApiResponse <Report> .Create(new Paternity(values).getVerdict()));
 }
Exemplo n.º 4
0
 public BoApiResponse <List <Country> > getCountries()
 {
     return(BoApiResponse <List <Country> > .Create(JsonConvert.DeserializeObject <List <Country> >(File.ReadAllText(System.Web.HttpContext.Current.Server.MapPath("~/JS/countries.json")))));
 }