public async Task <IActionResult> Form()
        {
            var vm = new ProductActivityVM();

            await FormInit(vm);

            return(View(await Task.FromResult(vm)));
        }
        public async Task <IActionResult> Form(ProductActivityVM model, IFormCollection formCollection)
        {
            if (ModelState.IsValid)
            {
            }

            return(View());
        }
        public async Task FormInit(ProductActivityVM model)
        {
            model.AppSettings = AppSettings;
            model.List        = await _uow.Repository <ProductActivity>()
                                .QueryNoTracking()
                                .ToListAsync();

            model.ActivityTypes = await _uow.Repository <ActivityType>()
                                  .QueryNoTracking(x => x.IsActive)
                                  .Select(x => new SelectListItem
            {
                Text  = x.Heading,
                Value = x.Id.ToString()
            }).ToListAsync();

            model.WareHouses = await _uow.Repository <WareHouse>()
                               .QueryNoTracking(x => x.IsActive)
                               .Select(x => new SelectListItem
            {
                Text  = x.Heading,
                Value = x.Id.ToString()
            }).ToListAsync();
        }