예제 #1
0
파일: POI.cs 프로젝트: zkenstein/CrowdCMS
        public tbl_POIFiles SavePOIFile(int poiID, Stream content, string extension, string fileName, int fileID)
        {
            if (poiID < 1 || content == null || String.IsNullOrEmpty(extension) || string.IsNullOrEmpty(fileName))
            {
                return(null);
            }

            MemoryStream ms = new MemoryStream();

            content.CopyTo(ms);
            ms.Seek(0, SeekOrigin.Begin);

            return(POIFilesRepository.SaveFile(poiID, ms.ToArray(), extension, fileName, fileID));
        }
예제 #2
0
파일: POI.cs 프로젝트: zkenstein/CrowdCMS
 public bool DeletePOIFile(int fileID)
 {
     return(POIFilesRepository.DeleteFile(fileID));
 }
예제 #3
0
파일: POI.cs 프로젝트: zkenstein/CrowdCMS
 public tbl_POIFiles GetPOIFileByID(int fileID)
 {
     return(POIFilesRepository.GetByID(fileID));
 }