Ejemplo n.º 1
0
 public ActionResult Key(string id)
 {
     var g = id.QuerystringToGuid();
     var et = DbUtil.Db.EmailQueueTos.SingleOrDefault(e => e.Guid == g);
     if (et != null)
     {
         var r = new EmailResponse
         {
             EmailQueueId = et.Id,
             PeopleId = et.PeopleId,
             Dt = DateTime.Now,
             Type = "o",
         };
         DbUtil.Db.EmailResponses.InsertOnSubmit(r);
         DbUtil.Db.SubmitChanges();
     }
     // this is an invisible 1 pixel image
     var b = Convert.FromBase64String("R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");
     return new FileContentResult(b, "image/gif");
 }
Ejemplo n.º 2
0
		private void detach_EmailResponses(EmailResponse entity)
		{
			this.SendPropertyChanging();
			entity.Person = null;
		}
Ejemplo n.º 3
0
 private void detach_EmailResponses(EmailResponse entity)
 {
     this.SendPropertyChanging();
     entity.EmailQueue = null;
 }
Ejemplo n.º 4
0
		private void attach_EmailResponses(EmailResponse entity)
		{
			this.SendPropertyChanging();
			entity.EmailQueue = this;
		}