public ActionResult GetImageInProfile(string userName) { User user = this.userProcessor.GetUserByName(userName); if (user != null) { return this.File(user.ImageData, user.ImageMimeType); } return null; }