public IHttpActionResult Get班别(Guid id)
        {
            班别 班别 = db.班别s.Single <班别>(x => x.除 == false & x.Id == id);

            if (班别 == null)
            {
                return(NotFound());
            }

            return(Ok(班别));
        }
 private void btn_BBAdd_Click(object sender, EventArgs e)
 {
     using (TransactionScope scope = new TransactionScope())
     {
         班别 temp = new 班别();
         temp.Id   = Guid.NewGuid();
         temp.班别1  = tb_BB.Text;
         temp.登记时间 = DateTime.Now;
         ddc.班别s.InsertOnSubmit(temp);
         ddc.SubmitChanges();
         scope.Complete();
     }
     LoadData();
 }