public void LoadData(int userImgId) { using (WorkWithMeDataContext oDC = new WorkWithMeDataContext()) { spGetImageDataResult result = oDC.spGetImageData(userImgId).FirstOrDefault(); Content = result.ImageContent.ToArray(); } }
public void LoadData(int userImgId) { using (WorkWithMeDataContext oDC = new WorkWithMeDataContext()) { spGetImageDataResult result = oDC.spGetImageData(userImgId).FirstOrDefault(); Content = result.ImageContent.ToArray(); } }