Exemplo n.º 1
0
        public ActionResult ReconcileBreakdowns(string hoursIDList)
        {
            var resolver = new BatchAuthResolver(new Data.V2.CoreContext());

            resolver.ResolveAllAuths(hoursIDList.Split(';').Select(x => int.Parse(x)).ToList());
            return(Content("ok"));
        }
Exemplo n.º 2
0
        public override int Run()
        {
            try
            {
                var resolver = new BatchAuthResolver(new Data.V2.CoreContext());

                resolver.AuthResolved      += Resolver_AuthResolved;
                resolver.ExceptionBypassed += Resolver_ExceptionBypassed;

                resolver.ResolveAllAuths(_options.StartDate, _options.EndDate);

                return((int)ExitCodes.Ok);
            }
            catch (Exception e)
            {
                this.PostMessageLine(e.ToString());
                return((int)ExitCodes.HandlerError);
            }
        }