public GetUserImageById ( int userId ) : byte[] | ||
userId | int | /// The user id. /// |
return | byte[] |
public byte[] GetUserImageById(int userId)
{
return this.dataBaseContext.Users.First(x => x.Id == userId).ImageData;
}