public static IMedia Build(string path, string fileName, string name) { IImageService imageService = new WebImageService(); IMedia media = new SimpleMedia() { Name = name, FileName = fileName, Image = imageService.GetImage(path) }; return(media); }
public IActionResult GetStoryInsight(string mediaId) { SimpleMedia objectResult = _instaBusiness.GetStoryInsight(mediaId); return(Ok(objectResult)); }