public void Update(DAL.DM_DVT dvt)
    {
        var tmp = dataContext.DM_DVTs.SingleOrDefault(t => t.MA_DVT == dvt.MA_DVT);

        if (tmp != null)
        {
            tmp.TEN_DVT     = dvt.TEN_DVT;
            tmp.GHI_CHU     = dvt.GHI_CHU;
            tmp.DATE_CREATE = dvt.DATE_CREATE;
            tmp.MA_DONVI    = dvt.MA_DONVI;
            tmp.USERNAME    = dvt.USERNAME;
            Save();
        }
    }
 public void Insert(DAL.DM_DVT dvt)
 {
     dataContext.DM_DVTs.InsertOnSubmit(dvt);
     Save();
 }