public ActionResult Create()
        {
            var viewModel = new ThuocViewModels
            {
                Categories = _dBContext.Categories.ToList()
            };

            return(View(viewModel));
        }
        public ActionResult Create(ThuocViewModels viewModel)
        {
            var Thuoc = new Thuoc
            {
                TenThuoc = viewModel.TenThuoc, ThongTinThuoc = viewModel.ThongTinThuoc, DangThuocId = User.Identity.GetUserId(), DateTime = viewModel.GetDateTime(), CategoryId = viewModel.Category, DiaChi = viewModel.DiaChi
            };

            _dBContext.Thuocs.Add(Thuoc);
            _dBContext.SaveChanges();
            return(RedirectToAction("Index", "Home"));
        }