// GET api/values public async Task <PictureDTO> Get(string lang = "ua") { //Configure lang OvvaService.Selector.Language = lang; try { var ovvaResponse = await OvvaService.GetProgramm(); var realServerPath = HttpContext.Current.Server.MapPath("~"); var picturePath = PictureService.GenerateAndSaveFile(ovvaResponse.Program, realServerPath + "/Content/ImageResults/"); return(new PictureDTO() { Path = picturePath.Replace(realServerPath, String.Empty) }); } catch { return(new PictureDTO()); } }