Пример #1
0
 public int DeleteEnumValue(long[] id)
 {
     using (var context = UnitOfWork.Get(Unity.ContainerName))
     {
         var r = new EnumsRepository(context);
         return(r.DelEnumValues(id));
     }
 }
Пример #2
0
 public void DeleteEnumType(long id)
 {
     using (var context = UnitOfWork.Get(Unity.ContainerName))
     {
         var r = new EnumsRepository(context);
         r.UsingTransaction(() =>
         {
             r.DelEnumValues(id);
             r.DelEnumTypes(id);
         });
     }
 }