public GetImage ( int userId ) : System.Web.Mvc.ActionResult | ||
userId | int | /// The user id. /// |
Résultat | System.Web.Mvc.ActionResult |
public ActionResult GetImage(int userId)
{
User user = this.userProcessor.GetUser(userId);
if (user != null)
{
return this.File(user.ImageData, user.ImageMimeType);
}
return null;
}