Embedded images
This commit is contained in:
@@ -1771,6 +1771,28 @@ namespace VEPROMS.CSLA.Library
|
||||
|
||||
public partial class ContentInfo
|
||||
{
|
||||
public static ContentInfo RestoreImage(ImageAuditInfo iai)
|
||||
{
|
||||
try
|
||||
{
|
||||
using (Content ctmp = Content.Get(iai.ContentID))
|
||||
{
|
||||
ctmp.MyImage.FileName = iai.FileName;
|
||||
ctmp.MyImage.Data = iai.Data;
|
||||
ctmp.MyImage.Config = iai.Config;
|
||||
ctmp.MyImage.DTS = DateTime.Now;
|
||||
ctmp.MyImage.UserID = Volian.Base.Library.VlnSettings.UserID;
|
||||
ctmp.DTS = DateTime.Now;
|
||||
ImageInfo.Refresh(ctmp.MyImage);
|
||||
ctmp.Save();
|
||||
return ContentInfo.Get(iai.ContentID);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new DbCslaException("Error on ContentInfo.RestoreImage", ex);
|
||||
}
|
||||
}
|
||||
public static ContentInfo RestoreContent(ContentAuditInfo cai,ROFstInfo myRoFst)
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user