public void test()
        {
            OrderManagementContext context = new OrderManagementContext();
            IEnumerable<OM_DepartmentDto> test1 = context.Set<OM_Permission>().Where(p => p.ID > 0).Select(p => Mapper.Map<OM_Permission, OM_DepartmentDto>(p));

            OM_Permission permission = new OM_Permission();
            OM_DepartmentDto test = Mapper.Map<OM_Permission, OM_DepartmentDto>(permission);
        }
 public bool UpdatePermission(OM_Permission permission)
 {
     if (DbRepository.Update(permission) > 0)
     {
         return true;
     }
     return false;
 }
 public bool SavePermission(OM_Permission permission)
 {
     if (DbRepository.Add(permission) > 0)
     {
         return true;
     }
     return false;
 }