public ActionResult Xoa(string id)
        {
            MyDBContext db    = new MyDBContext();
            NhaCungCapF nccf  = new NhaCungCapF();
            NhaCungCap  model = nccf.ChitietNhaCungCap(id);

            return(View(model));
        }
        public ActionResult Xoa(NhaCungCap model)
        {
            NhaCungCapF nccf = new NhaCungCapF();

            try
            {
                if (nccf.Delete(model.IDNCC))
                {
                    return(RedirectToAction("DanhSachNhaCungCap"));
                }
                else
                {
                    return(View());
                }
            }
            catch
            {
                return(View());
            }
        }
        public ActionResult Them(NhaCungCap model)
        {
            NhaCungCapF spf = new NhaCungCapF();

            try
            {
                if (spf.InSert(model))
                {
                    return(RedirectToAction("DanhSachNhaCungCap"));
                }
                else
                {
                    return(View());
                }
            }
            catch
            {
                return(View());
            }
        }