예제 #1
0
        public virtual void AddDescription(Work work, string workDesc)
        {
            WorkDescription line = workDescriptions
                                   .Where(p => p.WorkDescriptionID == work.WorkID)
                                   .FirstOrDefault();

            if (line == null)
            {
                workDescriptions.Add(new WorkDescription
                {
                    Work = work,
                    WorkDescriptionText = workDesc
                });
            }
        }
예제 #2
0
 public virtual void RemoveDescription(WorkDescription work) => workDescriptions.RemoveAll(l => l.WorkDescriptionID == work.WorkDescriptionID);