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")); }
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); } }