/// <summary>
 /// Cập nhật chi tiết trung tâm
 /// </summary>
 /// <param name="ct"></param>
 public static void Update(CHITIETTRUNGTAM ct)
 {
     Database.CHITIETTRUNGTAMs.DeleteOnSubmit(Select());
     Database.SubmitChanges();
     Database.CHITIETTRUNGTAMs.InsertOnSubmit(ct);
     Database.SubmitChanges();
 }
Example #2
0
        /// <summary>
        /// Nạp thông tin trung tâm
        /// </summary>
        public static void LoadCenterInformation()
        {
            CHITIETTRUNGTAM detail = ChiTietTrungTam.Select();

            CenterName      = detail.TenTT;
            CenterAddress   = detail.DiaChiTT;
            CenterWebsite   = detail.Website;
            CenterEmail     = detail.EmailTT;
            CenterTelephone = detail.SdtTT;
        }