public void RemoveAttachment(SupplierAttachment attachment) { Attachment.FirstOrDefault(d => d.AttachmentId == attachment.AttachmentId).DeleteAttachment(); EntityUpdated(); }
public void AddAttachment(SupplierAttachment attachment) { Attachment.Add(attachment); EntityUpdated(); }