示例#1
0
 public bool EditIndex(FloorIndex floorIndex)
 {
     try
     {
         _db.FloorIndexs.Equals(floorIndex);
         _db.SaveChanges();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
 public int AddIndex(FloorIndex floorIndex)
 {
     _db.FloorIndexs.Add(floorIndex);
     _db.SaveChanges();
     return(floorIndex.ID);
 }