public void OnMessageReceived(BrokeredMessage receivedMessage)
        {
            try
            {
                Trace.WriteLine("Processing Service Bus message: " + receivedMessage.SequenceNumber.ToString());

                ValidationRequest request = receivedMessage.GetBody <ValidationRequest>();

                Image image = db.Images.Find(request.imageId);

                if (ImageStorage.Validate(request.imageId))
                {
                    image.Validated = true;
                    db.SaveChanges();
                }
                else
                {
                    ImageStorage.DeleteFile(null, request.imageId);
                    db.Images.Remove(image);
                    db.SaveChanges();
                }

                receivedMessage.Complete();
            }
            catch
            {
                // Handle any Message
            }
        }