public bool ReserveBatteries(ReserveModel values) { try { return new ReserveBatteries(values).Reserve(); } catch (Exception ex) { HandleLogging.LogMessage(ex, "CalculateRoute", 1, WebOperationContext.Current); return false; } }
public ReserveBatteries(ReserveModel model) { UserRepository userRepository = new UserRepository(); _user = userRepository.GetUserByUserName(model.User); _stations = model.Stations; }
public bool ReserveBatteries(ReserveModel values) { return new RouteService().ReserveBatteries(values); }