Exemplo n.º 1
0
 public IActionResult Get(string values, string iPAddress = "")
 {
     if (iPAddress == "")
     {
         iPAddress = Request.HttpContext.Connection.RemoteIpAddress.ToString();
     }
     if (values != null)
     {
         return(Ok(_calculateService.CalculateValue(values, iPAddress)));
     }
     else
     {
         return(NotFound());
     }
 }