public ActionResult ShowPictures(string ObjectType, int Id) { IFileObjectFactory ObjectFactory = GetFileObject(ObjectType); IFileObject Object = ObjectFactory.BuildObject(); List <Picture> PictureList = Object.GetObjectPictures(Id); return(View(PictureList)); }