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); }
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); }