コード例 #1
0
        public virtual Acknowledgement <Image> AddImage(int roomId, List <byte[]> convertedBytes)
        {
            Acknowledgement <Image> ImageAcknowledgement = new Acknowledgement <Image>();

            try
            {
                FindMyRoomDb roomDb = new FindMyRoomDb();
                // RoomService roomService = new RoomService();
                roomService.UpdateImage(convertedBytes, roomId);
                ImageAcknowledgement.code    = 1;
                ImageAcknowledgement.Set     = null;
                ImageAcknowledgement.Message = "Images are Updated";
                return(ImageAcknowledgement);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
        public virtual Acknowledgement <Image> AddImage(List <byte[]> convertedBytes)
        {
            Acknowledgement <Image> ImageAknowledgement = new Acknowledgement <Image>();

            try
            {
                FindMyRoomDb roomDb = new FindMyRoomDb();

                var query = roomDb.FMRRooms.LastOrDefault();
                roomImageId = query.RoomId;
                roomService.UploadImages(convertedBytes, roomImageId);
                ImageAknowledgement.code    = 1;
                ImageAknowledgement.Set     = null;
                ImageAknowledgement.Message = "Images are Uploaded";
                return(ImageAknowledgement);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }