public FileContentResult CommentUserImage(string id) { var image = this.images.GetUserImageById(id); if (image == null) { var file = ConvertImage.ToBytes("/Images/default-user-img.jpg"); return(this.File(file, "image/jpg")); } return(this.File(image.Content, "image/" + image.FileExtension)); }