Epiworx.Business.AttachmentRepository.AttachmentNew C# (CSharp) Method

AttachmentNew() public static method

public static AttachmentNew ( int sourceId, SourceType sourceType ) : Attachment
sourceId int
sourceType SourceType
return Attachment
        public static Attachment AttachmentNew(int sourceId, SourceType sourceType)
        {
            var attachment = Attachment.NewAttachment();

            attachment.SourceId = sourceId;
            attachment.SourceTypeId = (int)sourceType;

            return attachment;
        }