static void Main(string[] args) { var setup = new SetUpService(); var catalog = setup.CreateCatalogue(); var scanService = new ScanService(catalog); var totalService = new TotalUpService(catalog); Console.WriteLine("Checkout service"); Console.WriteLine("Please enter the code for each item and press enter. Entering 'DONE' will return the total"); var checkOut = false; while (!checkOut) { var line = Console.ReadLine(); if (line == "DONE") { checkOut = true; Console.WriteLine("Total: " + totalService.TotalUp(scanService.ScannedItems).ToString()); Console.ReadLine(); } else { try { scanService.Scan(line); } catch (Exception ex) { Console.WriteLine(ex.Message); } } } }
public async Task <IHttpActionResult> AddUser(UserViewModel model) { model.Id = Guid.NewGuid(); SetUpService.AddUser(model.ToServiceRequestModel()); await UserManager.SendPasswordResetEmail(model, Mailing.Models.EmailTemplate.SetUpPassword, "MBOS : Password setup"); return(Ok()); }
public async Task <IHttpActionResult> UpdateAgent(AgentViewModel model) { var response = SetUpService.UpdateAgent(model.ToServiceRequestModel()); if (!response.IsNewUser) { return(Ok()); } var user = SetUpService.GetUser(response.UserId); await UserManager.SendPasswordResetEmail(user, Mailing.Models.EmailTemplate.SetUpPassword, "MBOS : Password setup"); return(Ok()); }
static void Main(string[] args) { Cell test = new Cell(3, 5, 4, 0); var setUp = new SetUpService(); var grid = setUp.InitialiseGrid(); var solver = new SolverService(grid); Console.WriteLine("Sudoku solver\n"); Console.WriteLine("Grid to be solved\n"); Console.WriteLine(grid.ToString()); grid = solver.Solve(); Console.WriteLine("\nGrid solved\n"); Console.WriteLine(grid.ToString()); }
public IHttpActionResult ListSourceType(KendoDataRequest kendoDataRequest) { return(Ok(SetUpService.ListSourceType(kendoDataRequest))); }
public IHttpActionResult GetDocumentProcessingSetting(int id) { return(Ok(SetUpService.GetDocumentProcessingSetting(id))); }
public IHttpActionResult DeleteMIPLimit(Guid id) { SetUpService.DeleteMIPLimit(id.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult UpdateAocaObservation(List <AocaObservationMapViewModel> model) { SetUpService.UpdateAocaObservation(model.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult DeleteExpenseItem(Guid id) { SetUpService.DeleteExpenseItem(id.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult ListUserGroup(KendoDataRequest kendoDataRequest) { return(Ok(SetUpService.ListUserGroup(kendoDataRequest))); }
public IHttpActionResult GetUserGroup(UserGroupType userGroupType) { return(Ok(SetUpService.GetUserGroup(userGroupType))); }
public IHttpActionResult ListDocumentProcessingSetting(KendoDataRequest kendoDataRequest) { return(Ok(SetUpService.ListDocumentProcessingSetting(kendoDataRequest))); }
public IHttpActionResult ListNotificationSetting(KendoDataRequest kendoDataRequest) { return(Ok(SetUpService.ListNotificationSetting(kendoDataRequest))); }
public IHttpActionResult GetHoliday(Guid id) { return(Ok(SetUpService.GetHoliday(id))); }
public IHttpActionResult DeleteHoliday(Guid id) { SetUpService.DeleteHoliday(id.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult UpdateHoliday(HolidayViewModel model) { SetUpService.UpdateHoliday(model.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult ListHoliday(KendoDataRequest kendoDataRequest) { return(Ok(SetUpService.ListHoliday(kendoDataRequest))); }
public IHttpActionResult DeleteDocumentProcessingSetting(int id) { SetUpService.DeleteDocumentProcessingSetting(id.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult UpdateSourceType(SourceTypeViewModel model) { SetUpService.UpdateSourceType(model.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult UpdateNotificationSetting(List <NotificationSettingViewModel> model) { SetUpService.UpdateNotificationSetting(model.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult GetSourceType(int id) { return(Ok(SetUpService.GetSourceType(id))); }
public IHttpActionResult GetNotificationSetting(NotificationSettingType notificationSettingType) { return(Ok(SetUpService.GetNotificationSetting(notificationSettingType))); }
public IHttpActionResult UpdateUserGroup(List <UserGroupViewModel> model) { SetUpService.UpdateUserGroup(model.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult GetExpenseItem(Guid id) { return(Ok(SetUpService.GetExpenseItem(id))); }
public IHttpActionResult ListAocaObservation() { return(Ok(SetUpService.ListAocaObservation())); }
public IHttpActionResult UpdateMIPLimit(MIPLimitViewModel model) { SetUpService.UpdateMIPLimit(model.ToServiceRequestModel()); return(Ok()); }
public IHttpActionResult GetDbCurrentDateTime() { return(Ok(SetUpService.GetDbCurrentDateTime())); }
public IHttpActionResult GetMIPLimit(Guid id) { return(Ok(SetUpService.GetMIPLimit(id))); }
public IHttpActionResult ListMIPLimit(KendoDataRequest kendoDataRequest) { return(Ok(SetUpService.ListMIPLimit(kendoDataRequest))); }
public IHttpActionResult UpdateDocumentProcessingSetting(DocumentProcessingSettingViewModel model) { SetUpService.UpdateDocumentProcessingSetting(model.ToServiceRequestModel()); return(Ok()); }