public ActionResult PicturePageForVideoID(String TableName, String TableID, String ThumbOrFull) { lock (Data.DbServer3) { BeitragInformationModel StBModel = new BeitragInformationModel(String.Empty, String.Empty); bool ThumbOrFullBool = (ThumbOrFull == "True"); WebImage CreatedWebImage = new WebImage(StBModel.CreatePictureData(TableName, TableID, ThumbOrFullBool)); return new FileContentResult(CreatedWebImage.GetBytes("image/jpeg"), "image/jpeg"); } }
public ActionResult PicturePageForID(String TableName, String MMPartID, String PageNumber, String ThumbOrFull) { lock (Data.DbServer3) { BeitragInformationModel StBModel = new BeitragInformationModel(String.Empty, String.Empty); bool ThumbOrFullBool = (ThumbOrFull == "True"); MMPart partToShow = Data.DbServer3.MultiMedia.MMParts.FindOrLoad(Guid.Parse(MMPartID)); if (partToShow == null) return null; WebImage CreatedWebImage = new WebImage(partToShow.FullBitmapSource.ConvertTo_JpgByteArray()); return new FileContentResult(CreatedWebImage.GetBytes("image/jpeg"), "image/jpeg"); } }
public ActionResult StandbildInfo(string identifier, string imageWebPath) { lock (Data.DbServer3) { BeitragInformationModel beitragInformation = new BeitragInformationModel(identifier, imageWebPath); beitragInformation.FillMe(); return View("StandbildInformationView", beitragInformation); } }