public void Run() { var service = XrmCommand.GetService(); var core = new SlaService(service); var parsedId = GuidParser.TryParseIdOrThrow(SlaId); var parsedBusinessId = core.TryGetBusinessHours(BusinessHoursId); core.UpdateSLA(parsedId, IsDefault, IsActive, parsedBusinessId); }
public AssignWorkflowsToUser(IXrmCommand xrmCommand, string userId, IWorkflowService service = null) { XrmCommand = xrmCommand; UserId = GuidParser.TryParseIdOrThrow(userId); WorkflowService = service; }
public AssignWorkflowsToUser(string connectionString, string userId) { XrmCommand = new XrmCommand(connectionString); UserId = GuidParser.TryParseIdOrThrow(userId); }