protected GenericFormProcessor(CrmServiceData serviceData, T formData, FormActivityType activityType) { ServiceData = serviceData; FormModel = formData; ActivityType = activityType; //Retrieve the template details from the database. var templateCollection = new DocumentTemplateCollection(serviceData.UserId, serviceData.ClientId, serviceData.OperCode); templateCollection.FillBySellerId(serviceData.SellerId); var template = templateCollection.FirstOrDefault(t => t.SupplierId == serviceData.SupplierId && t.TemplateTypeId == (int)formData.TemplateType); Template = template; }
public GenericFormDownloadProcessor(CrmServiceData serviceData, T formModel, FormActivityType activityType) : base(serviceData, formModel, activityType) { }