Example #1
0
		public void UpdateCannedText(CannedText cannedText, CannedTextDetail detail, Staff owner, IPersistenceContext context)
		{
			cannedText.Name = detail.Name;
			cannedText.Category = detail.Category;
			cannedText.Staff = detail.IsPersonal ? owner : null;
			cannedText.StaffGroup = detail.IsGroup ? context.Load<StaffGroup>(detail.StaffGroup.StaffGroupRef, EntityLoadFlags.Proxy) : null;
			cannedText.Text = detail.Text;
		}
 public AddCannedTextRequest(CannedTextDetail detail)
 {
     this.Detail = detail;
 }
Example #3
0
 public UpdateCannedTextRequest(EntityRef cannedTextRef, CannedTextDetail detail)
 {
     this.CannedTextRef = cannedTextRef;
     this.Detail        = detail;
 }
		public LoadCannedTextForEditResponse(CannedTextDetail detail)
		{
			this.CannedTextDetail = detail;
		}
Example #5
0
		public AddCannedTextRequest(CannedTextDetail detail)
        {
            this.Detail = detail;
        }
		private static void CheckCannedTextWriteAccess(CannedTextDetail cannedText)
		{
			CheckCannedTextWriteAccess(cannedText.IsPersonal);
		}
Example #7
0
		public CannedText CreateCannedText(CannedTextDetail detail, Staff owner, IPersistenceContext context)
		{
			CannedText newCannedText = new CannedText();
			UpdateCannedText(newCannedText, detail, owner, context);
			return newCannedText;
		}
Example #8
0
 public LoadCannedTextForEditResponse(CannedTextDetail detail)
 {
     this.CannedTextDetail = detail;
 }
		public UpdateCannedTextRequest(EntityRef cannedTextRef, CannedTextDetail detail)
        {
			this.CannedTextRef = cannedTextRef;
            this.Detail = detail;
        }