Hi, While working in a Asp.Net MVC project, I am stuck in a issue that how to return an image from MVC Controller ?
The real senario is that I have to return an image among various images (that I have kept in the Content folder in the Solution Explorer) as per the input from the user. Please tell me how can I achieve this if anyone has any idea as I am new to Asp.Net MVC.
What I am doing is as follows:
public class HomeController : Controller
public ActionResult Index()
public ActionResult Search(int choice)
//return image1.... How to do this?