public async Task <ActionResult> Edit(int Id)
        {
            Infrastructure.Repository.CategoryDao daoCategory = new Infrastructure.Repository.CategoryDao();
            ProductViewModel model = (ProductViewModel)dao.ConvertToViewModel(await dao.GetProductById(Id));

            ViewBag.Categoryid = daoCategory.ConvertToViewModelReadings(daoCategory.GetCategory());
            return(View(model));
        }
 public async Task <IActionResult> Add()
 {
     Infrastructure.Repository.CategoryDao daoCategory = new Infrastructure.Repository.CategoryDao();
     ViewBag.Categoryid = daoCategory.ConvertToViewModelReadings(daoCategory.GetCategory());
     return(View());
 }