BinaryStudio.TaskManager.Web.Controllers.ProjectController.GetImage C# (CSharp) Method

GetImage() public method

The get image.
public GetImage ( int userId ) : System.Web.Mvc.ActionResult
userId int /// The user id. ///
return 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;
        }