Ejemplo n.º 1
0
 private async Task <HttpStatusCode> SetResource(string data, string name, UcwaResource parent)
 {
     if (string.IsNullOrEmpty(name) || parent == null)
     {
         return(HttpStatusCode.BadRequest);
     }
     return(await SetResource(data, parent.GetEmbeddedResourceUri(name)));
 }
Ejemplo n.º 2
0
        private async Task <UcwaResource> GetResource(string resourceName, UcwaResource parent)
        {
            if (string.IsNullOrEmpty(resourceName))
            {
                return(null);
            }
            if (parent == null)
            {
                return(null);
            }

            var uri = parent.GetEmbeddedResourceUri(resourceName);

            return(await GetResource(uri));
        }