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; }
public UpdateCannedTextRequest(EntityRef cannedTextRef, CannedTextDetail detail) { this.CannedTextRef = cannedTextRef; this.Detail = detail; }
public LoadCannedTextForEditResponse(CannedTextDetail detail) { this.CannedTextDetail = detail; }
private static void CheckCannedTextWriteAccess(CannedTextDetail cannedText) { CheckCannedTextWriteAccess(cannedText.IsPersonal); }
public CannedText CreateCannedText(CannedTextDetail detail, Staff owner, IPersistenceContext context) { CannedText newCannedText = new CannedText(); UpdateCannedText(newCannedText, detail, owner, context); return newCannedText; }