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"); }
private void detach_EmailResponses(EmailResponse entity) { this.SendPropertyChanging(); entity.Person = null; }
private void detach_EmailResponses(EmailResponse entity) { this.SendPropertyChanging(); entity.EmailQueue = null; }
private void attach_EmailResponses(EmailResponse entity) { this.SendPropertyChanging(); entity.EmailQueue = this; }