Example #1
0
 public void Delete(ECvalLvL item)
 {
     if (item == _item.GetAll().FirstOrDefault(x => item.Name == item.Name))
     {
         _item.Delete(item);
         Save();
     }
 }
Example #2
0
 public ECvalLvL Add(ECvalLvL item)
 {
     if (item != _item.GetAll().FirstOrDefault(x => item.Name == item.Name))
     {
         ECvalLvL temp = _item.Add(item);
         Save();
         return(temp);
     }
     else
     {
         throw new Exception("This Subject Alredy Added");
     }
 }
Example #3
0
 public void Delete(ECvalLvL item)
 {
     _context.CvalLvL.Remove(item);
 }
Example #4
0
 public ECvalLvL Add(ECvalLvL item)
 {
     return(_context.CvalLvL.Add(item));
 }