Exemple #1
0
        public async Task<IActionResult> AddWageSchemaDetails( AddWageSchemaDetailsViewModel vm )
        {
                var adminServ = new AdminServices(uow);
                var appUser = await GetCurrentUserAsync();

            if ( ModelState.IsValid)
            {
                var res = adminServ.AddWageSchemaDetails(vm.SelectedWageSchema,  vm.SelectedDay, vm.StartHour, vm.StartMinute, vm.EndHour, vm.EndMinute   ); 
            }

            vm.Days = GetDays();
            vm.StartHours = GetHours();
            vm.StartMinutes = GetMinutes();
            vm.EndHours = GetHours();
            vm.EndMinutes = GetMinutes();
            vm.wageSchemas = GetWageSchemaDetails(adminServ, appUser.Email);
            return View(vm);
        }
Exemple #2
0
 public async Task<IActionResult> AddWageSchemaDetails()
 {
         var adminServ = new AdminServices(uow);
     var appUser = await GetCurrentUserAsync();
     AddWageSchemaDetailsViewModel vm = new AddWageSchemaDetailsViewModel();
     vm.Days = GetDays();
     vm.StartHours = GetHours();
     vm.StartMinutes = GetMinutes();
     vm.EndHours = GetHours();
     vm.EndMinutes = GetMinutes();
     vm.wageSchemas = GetWageSchemaDetails(adminServ, appUser.Email);
         return View(vm);
 }