Exemple #1
0
        public ImageItem InsertImage(string albumId, ImageItem image)
        {
            var imageAdapter = new ImageAdapter();

            image = imageAdapter.Insert(image);
            var param = new[]
            {
                new SqlParameter("@albumId", albumId),
                new SqlParameter("@imageId", image.Id),
            };

            Call(SP_ALBUM_IMAGE_INSERT, param);
            return(image);
        }
Exemple #2
0
        public ImageItem InsertImage(string roomTypeId, ImageItem image)
        {
            var imageAdapter = new ImageAdapter();

            image = imageAdapter.Insert(image);

            var param = new[]
            {
                new SqlParameter("@imageId", image.Id),
                new SqlParameter("@roomTypeId", roomTypeId),
            };

            Call(SP_ROOMTYPEIMAGE_INSERT, param);
            return(image);
        }