コード例 #1
0
 public Department_Data()
 {
     DB = new List <Backend.Department>();
     DB.Add(new Backend.Department("defult", "0"));//defult department, only in use when removing departmetnt in exsisting object
     emartDataContext = new EmartDataContext();
 }
コード例 #2
0
 public void Save(Award award)
 {
     award.Id = _random.Next();
     _awards.Add(award);
 }