Example #1
0
 public void createType(Data.Type obj)
 {
     try
     {
         TypeRepository.Add(obj);
         SaveChange();
     }
     catch
     {
     }
 }
Example #2
0
 public void editType(Data.Type obj)
 {
     TypeRepository.Update(obj);
     SaveChange();
 }
Example #3
0
 public void deleteType(int id)
 {
     Data.Type Type = TypeRepository.GetById(id);
     TypeRepository.Delete(Type);
     SaveChange();
 }