public JsonResult Post(List <InputObject> inputObjects)
        {
            //If Any input url in the list is invalid -- IsValidUrl will return exception - which will be logged/handled in global exception filter
            if (inputObjects != null && inputObjects.All(x =>
                                                         //URL Validation..
                                                         HttpClientValidation.IsValidUrl(x).Result&&
                                                         //Size Validation
                                                         SizeValidation.isValidSize(x)))
            {
                return(new JsonResult(inputObjects.ToDictionary(x => x.Path, o => new PathValueObject(o.Url, o.Size))));
            }

            return(new JsonResult("Bad Request!"));
        }
 public HttpClientUrlProcessController(HttpClientValidation httpClientValidation, SizeValidation sizeValidation)
 {
     HttpClientValidation = httpClientValidation;
     SizeValidation       = sizeValidation;
 }