public IActionResult ViewImage(int id) { var img = _imgService.ViewImage(id); if (img == null) { return(BadRequest($"There is no picture with id {id}")); } return(View(img)); }
public IActionResult ViewImage(int id) { var img = _imgService.ViewImage(id); if (img == null) { return(BadRequest($"There is no picture with id {id}")); } return(View(img)); }